Commit cffcec3
committed
cls/cas/cls_cas_internal: Initialize 'hash' value before decoding into 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]>1 parent d7353ad commit cffcec3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
0 commit comments