]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Fix segfault in EC debug string
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 8 Aug 2025 09:25:53 +0000 (10:25 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 17 Sep 2025 08:43:26 +0000 (09:43 +0100)
commit2026d8d0ed76cd6a44251488087f99ec4490f526
tree1c860a2975fa8582ee9a18bd81ff6104caeb3420
parent73a5468e0b0df9b50f656ebfc894f8f8a7170a31
osd: Fix segfault in EC debug string

The old debug_string implementation was potentially reading up to 3
bytes off the end of an array. It was also doing lots of unnecessary
bufferlist reconstructs. This refactor of this function fixes both
issues.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit da3ccdf4d03e40b747f8876449199102e53e00ce)
src/osd/ECUtil.cc
src/test/osd/TestECBackend.cc
src/test/osd/TestECUtil.cc