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)
142
142
key.Set (data.begin () + privkey_prefix.size (), data.begin () + privkey_prefix.size () + 32 , compressed);
143
143
}
144
144
}
145
- memory_cleanse (data.data (), data.size ());
145
+ if (!data.empty ()) {
146
+ memory_cleanse (data.data (), data.size ());
147
+ }
146
148
return key;
147
149
}
148
150
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ bool:wallet/wallet.cpp
4
4
float-divide-by-zero:policy/fees.cpp
5
5
float-divide-by-zero:validation.cpp
6
6
float-divide-by-zero:wallet/wallet.cpp
7
- nonnull-attribute:support/cleanse.cpp
8
7
unsigned-integer-overflow:arith_uint256.h
9
8
unsigned-integer-overflow:basic_string.h
10
9
unsigned-integer-overflow:bench/bench.h
You can’t perform that action at this time.
0 commit comments