From c6367aa4ce7f7770176e6f5b0751a869ad8d8f8f Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Fri, 11 Apr 2014 12:31:32 -0700 Subject: [PATCH] minissdp: fix potential out-of-bounds read --- minissdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minissdp.c b/minissdp.c index 61c32a7..7005f0f 100644 --- a/minissdp.c +++ b/minissdp.c @@ -364,7 +364,7 @@ ParseUPnPClient(char *location) { nread += n; buf[nread] = '\0'; - n = nread; + n = nread - 4; p = buf; while (!off && (n-- > 0))