Fix uninitialized memory read vulnerability in packet validation
parent
d6b4695c4c
commit
f2f363b6aa
|
|
@ -79,7 +79,7 @@ bool NormMsg::InitFromBuffer(UINT16 msgLength)
|
|||
PLOG(PL_FATAL, "NormMsg::InitFromBuffer() invalid message type!\n");
|
||||
return false;
|
||||
}
|
||||
if (msgLength < header_length)
|
||||
if ((msgLength < header_length) || (header_length < header_length_base))
|
||||
{
|
||||
PLOG(PL_FATAL, "NormMsg::InitFromBuffer() invalid message or header length\n");
|
||||
return false;
|
||||
|
|
|
|||
2
wscript
2
wscript
|
|
@ -47,7 +47,7 @@ system = platform.system().lower()
|
|||
|
||||
def options(ctx):
|
||||
ctx.recurse('protolib')
|
||||
build_opts = ctx.parser.add_argument_group('Compile/install Options', 'Use during build/install step.')
|
||||
build_opts = ctx.add_option_group('Compile/install Options', 'Use during build/install step.')
|
||||
|
||||
# Add Rust binding options
|
||||
ctx.add_option('--build-rust', action='store_true', default=False,
|
||||
|
|
|
|||
Loading…
Reference in New Issue