Skip to content

reef: cls/cas/cls_cas_internal: Initialize 'hash' value before decoding - #59237

Merged
kamoltat merged 1 commit into
ceph:reeffrom
NitzanMordhai:wip-67572-reef
Oct 3, 2024
Merged

kamoltat merged 1 commit into
ceph:reeffrom
NitzanMordhai:wip-67572-reef

Conversation

@NitzanMordhai

Copy link
Copy Markdown
Contributor

…o it

In the decode function for chunk_refs_by_hash_t, initialize the variable
'hash' of type ceph_le32 to zero before its first use.
This prevents the variable from containing dirty (uninitialized) values,
which could lead to unexpected behavior later in the code.

Fixes: https://tracker.ceph.com/issues/64854
Signed-off-by: Nitzan Mordechai <[email protected]>
(cherry picked from commit cffcec3)
@NitzanMordhai NitzanMordhai added this to the reef milestone Aug 15, 2024
@NitzanMordhai
NitzanMordhai requested a review from Matan-B August 15, 2024 08:50
@ljflores

ljflores commented Sep 9, 2024

Copy link
Copy Markdown
Member

jenkins test make check

@kamoltat

kamoltat commented Oct 3, 2024

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants