1
mirror of https://github.com/mpv-player/mpv synced 2025-04-07 19:06:39 +02:00

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
This commit is contained in:
rtogni 2008-01-20 20:43:46 +00:00
parent 3bbe897e24
commit 795973f732

@ -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<len;j++) {