1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] path_simplify would read two bytes past the end of the string in the "./" case.

This commit is contained in:
hniksic 2003-09-21 06:36:50 -07:00
parent c06d32a309
commit 7211c51139
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-09-21 Bertrand Demiddelaer <bert@b3rt.org>
* url.c (path_simplify): Would read two bytes past the end of the
string in the "./" case.
2003-09-21 Matthew J. Mellon <mellon@tymenet.com> 2003-09-21 Matthew J. Mellon <mellon@tymenet.com>
* http.c (gethttp): Recognize content-type "application/xhtml+xml" * http.c (gethttp): Recognize content-type "application/xhtml+xml"

View File

@ -1776,7 +1776,7 @@ path_simplify (char *path)
if (*(p + 1) == '/') if (*(p + 1) == '/')
{ {
change = 1; change = 1;
memmove (p, p + 2, end - p); memmove (p, p + 2, end - (p + 2));
end -= 2; end -= 2;
goto again; goto again;
} }