Commit 1c00d38
committed
Fix Valgrind uninitialized memory warnings
Valgrind reported some uses of uninitialized memory when running the
regression tests under it. This patch addresses the following valgrind
reported issues:
1. LogBuffer flush:
Syscall param write(buf) points to uninitialised byte(s)
at Log::flush_thread_main(void*)
by LogBuffer::LogBuffer(LogConfig const*, LogObject*, ...)
2. Cache test pwrite:
Syscall param pwrite64(buf) points to uninitialised byte(s)
at AIOThreadInfo::aio_thread_main(AIOThreadInfo*)
by Stripe::Stripe(CacheDisk*, long, long, int, int)1 parent fac9502 commit 1c00d38
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| |||
610 | 611 | | |
611 | 612 | | |
612 | 613 | | |
| 614 | + | |
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| |||
630 | 632 | | |
631 | 633 | | |
632 | 634 | | |
| 635 | + | |
633 | 636 | | |
634 | 637 | | |
635 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
0 commit comments