We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19aeee2 commit fe7deacCopy full SHA for fe7deac
src/CLR/WireProtocol/WireProtocol_Message.c
@@ -89,8 +89,8 @@ bool SyncToMessageStart()
89
size_t moveLength = len - 1;
90
91
// Ensure that the memory regions do not exceed allocated bounds
92
- if ((src + moveLength > (uint8_t *)&_inboundMessage + sizeof(_inboundMessage)) ||
93
- (dst + moveLength > (uint8_t *)&_inboundMessage + sizeof(_inboundMessage)))
+ if ((src + moveLength >= (uint8_t *)&_inboundMessage + sizeof(_inboundMessage)) ||
+ (dst + moveLength >= (uint8_t *)&_inboundMessage + sizeof(_inboundMessage)))
94
{
95
return false;
96
}
0 commit comments