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)
6565 ret += strprintf (" 0x%x " , HexStr (std::vector<uint8_t >(it2, script.end ())));
6666 break ;
6767 }
68- return ret.substr (0 , ret.size () - 1 );
68+ return ret.substr (0 , ret.empty () ? ret. npos : ret. size () - 1 );
6969}
7070
7171const 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
4747unsigned-integer-overflow:common/bloom.cpp
4848unsigned-integer-overflow:coins.cpp
4949unsigned-integer-overflow:compressor.cpp
50- unsigned-integer-overflow:core_write.cpp
5150unsigned-integer-overflow:crypto/
5251unsigned-integer-overflow:hash.cpp
5352unsigned-integer-overflow:policy/fees.cpp
You can’t perform that action at this time.
0 commit comments