Fixed high AddressType variable used without being assigned
In RangeMap::StoreRangeInternal, when size <= 0 and !high_ok then the high variable is passed to HexString uninitialized. Change-Id: I7e597cadaf248b607c646534a5d800c17ccdeda9 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5155712 Reviewed-by: Robert Sesek <rsesek@chromium.org>
This commit is contained in:
parent
11ec9c3288
commit
ed1d564c9e
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ template<typename AddressType, typename EntryType>
|
|||
bool RangeMap<AddressType, EntryType>::StoreRangeInternal(
|
||||
const AddressType& base, const AddressType& delta,
|
||||
const AddressType& size, const EntryType& entry) {
|
||||
AddressType high;
|
||||
AddressType high = AddressType();
|
||||
bool high_ok = false;
|
||||
if (size > 0) {
|
||||
std::pair<AddressType, bool> result = AddWithOverflowCheck(base, size - 1);
|
||||
|
|
Loading…
Reference in a new issue