From 795973f7327c46a514e7416d6df1b85b8cce868c Mon Sep 17 00:00:00 2001 From: rtogni Date: Sun, 20 Jan 2008 20:43:46 +0000 Subject: Clear tmp between ip6 check and string escape to prevent reuse of the buffer, in order to prevent a possible buffer overflow on malformed urls. Based on a patch by Adam Bozanich abozanich musecurity com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25823 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/url.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/url.c') diff --git a/stream/url.c b/stream/url.c index 79a1eba19a..89d4eaaa7b 100644 --- a/stream/url.c +++ b/stream/url.c @@ -328,6 +328,7 @@ url_escape_string(char *outbuf, const char *inbuf) { } } + tmp = NULL; while(i < len) { // look for the next char that must be kept for (j=i;j