File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
test/sanitizer_suppressions Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,9 @@ CKey DecodeSecret(const std::string& str)
142142 key.Set (data.begin () + privkey_prefix.size (), data.begin () + privkey_prefix.size () + 32 , compressed);
143143 }
144144 }
145- memory_cleanse (data.data (), data.size ());
145+ if (!data.empty ()) {
146+ memory_cleanse (data.data (), data.size ());
147+ }
146148 return key;
147149}
148150
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ bool:wallet/wallet.cpp
44float-divide-by-zero:policy/fees.cpp
55float-divide-by-zero:validation.cpp
66float-divide-by-zero:wallet/wallet.cpp
7- nonnull-attribute:support/cleanse.cpp
87unsigned-integer-overflow:arith_uint256.h
98unsigned-integer-overflow:basic_string.h
109unsigned-integer-overflow:bench/bench.h
You can’t perform that action at this time.
0 commit comments