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;
|
nread += n;
|
||||||
buf[nread] = '\0';
|
buf[nread] = '\0';
|
||||||
n = nread;
|
n = nread - 4;
|
||||||
p = buf;
|
p = buf;
|
||||||
|
|
||||||
while (!off && (n-- > 0))
|
while (!off && (n-- > 0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user