Skip to content
Permalink
Browse files

miniwget.c: fixed potential buffer overrun

  • Loading branch information
miniupnp committed Dec 9, 2013
1 parent b0c66c0 commit 3a87aa2f10bd7f1408e1849bdb59c41dd63a9fe9
Showing with 4 additions and 1 deletion.
  1. +3 −0 miniupnpc/Changelog.txt
  2. +1 −1 miniupnpc/miniwget.c
@@ -1,6 +1,9 @@
$Id: Changelog.txt,v 1.187 2013/06/06 21:36:39 nanard Exp $
miniUPnP client Changelog.

2013/10/07:
fixed potential buffer overrun in miniwget.c

2013/08/01:
define MAXHOSTNAMELEN if not already done

@@ -162,7 +162,7 @@ getHTTPResponse(int s, int * size)
chunked = 1;
}
}
while(header_buf[i]=='\r' || header_buf[i] == '\n')
while((i < (int)header_buf_used) && (header_buf[i]=='\r' || header_buf[i] == '\n'))
i++;
linestart = i;
colon = linestart;

0 comments on commit 3a87aa2

Please sign in to comment.
You can’t perform that action at this time.