File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
test/sanitizer_suppressions Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ std::string FormatScript(const CScript& script)
65
65
ret += strprintf (" 0x%x " , HexStr (std::vector<uint8_t >(it2, script.end ())));
66
66
break ;
67
67
}
68
- return ret.substr (0 , ret.size () - 1 );
68
+ return ret.substr (0 , ret.empty () ? ret. npos : ret. size () - 1 );
69
69
}
70
70
71
71
const std::map<unsigned char , std::string> mapSigHashTypes = {
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ unsigned-integer-overflow:arith_uint256.h
47
47
unsigned-integer-overflow:common/bloom.cpp
48
48
unsigned-integer-overflow:coins.cpp
49
49
unsigned-integer-overflow:compressor.cpp
50
- unsigned-integer-overflow:core_write.cpp
51
50
unsigned-integer-overflow:crypto/
52
51
unsigned-integer-overflow:hash.cpp
53
52
unsigned-integer-overflow:policy/fees.cpp
You can’t perform that action at this time.
0 commit comments