File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
test/sanitizer_suppressions Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ CMessageHeader::CMessageHeader()
91
91
{
92
92
memset (pchMessageStart, 0 , MESSAGE_START_SIZE);
93
93
memset (pchCommand, 0 , sizeof (pchCommand));
94
- nMessageSize = -1 ;
95
94
memset (pchChecksum, 0 , CHECKSUM_SIZE);
96
95
}
97
96
Original file line number Diff line number Diff line change 16
16
#include < uint256.h>
17
17
#include < version.h>
18
18
19
+ #include < limits>
19
20
#include < stdint.h>
20
21
#include < string>
21
22
@@ -51,7 +52,7 @@ class CMessageHeader
51
52
52
53
char pchMessageStart[MESSAGE_START_SIZE];
53
54
char pchCommand[COMMAND_SIZE];
54
- uint32_t nMessageSize;
55
+ uint32_t nMessageSize{std::numeric_limits< uint32_t >:: max ()} ;
55
56
uint8_t pchChecksum[CHECKSUM_SIZE];
56
57
};
57
58
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ implicit-integer-sign-change:key.cpp
62
62
implicit-integer-sign-change:noui.cpp
63
63
implicit-integer-sign-change:policy/fees.cpp
64
64
implicit-integer-sign-change:prevector.h
65
- implicit-integer-sign-change:protocol.cpp
66
65
implicit-integer-sign-change:script/bitcoinconsensus.cpp
67
66
implicit-integer-sign-change:script/interpreter.cpp
68
67
implicit-integer-sign-change:serialize.h
You can’t perform that action at this time.
0 commit comments