minissdp: fix potential out-of-bounds read
This commit is contained in:
parent
3a57744735
commit
c6367aa4ce
@ -364,7 +364,7 @@ ParseUPnPClient(char *location)
|
||||
{
|
||||
nread += n;
|
||||
buf[nread] = '\0';
|
||||
n = nread;
|
||||
n = nread - 4;
|
||||
p = buf;
|
||||
|
||||
while (!off && (n-- > 0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user