]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Fix Valgrind UninitCondition error in ECCommon::read_result_t::print() 70333/head
authorBill Scales <bill_scales@uk.ibm.com>
Mon, 20 Jul 2026 06:34:20 +0000 (07:34 +0100)
committerBill Scales <bill_scales@uk.ibm.com>
Mon, 20 Jul 2026 11:53:57 +0000 (12:53 +0100)
omap_complete in read_result_t can be uninitialized if ECSubReadReply
contains an empty map of omap_complete information.

Fixes: https://tracker.ceph.com/issues/76953
Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/osd/ECCommon.h

index eedcc02383b2471532795e705843585fe71dc233..e1851a71bcdbabe0480c59f000e9abd5d17e28ae 100644 (file)
@@ -209,7 +209,7 @@ struct ECCommon {
     std::optional<std::map<std::string, ceph::buffer::list, std::less<>>> attrs;
     std::optional<ceph::buffer::list> omap_header;
     std::optional<std::map<std::string, ceph::buffer::list>> omap_entries;
-    bool omap_complete;
+    bool omap_complete = false;
     ECUtil::shard_extent_map_t buffers_read;
     ECUtil::shard_extent_set_t processed_read_requests;
     shard_id_set zero_length_reads;