diff options
author | Antonio Hernández Blas <hba.nihilismus@gmail.com> | 2014-11-05 18:22:25 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-08 06:30:11 +0700 |
commit | 60c75ff791ce88fe9bddede4997aa2c6dfea5e64 (patch) | |
tree | 2751074694fa5987c3e7fe304c9205a7aae73e5d /network/thttpd/patches/fix-buffer-overflow.diff | |
parent | 2e8081a46c101e236b26256a8440f5d6d0ab168c (diff) | |
download | slackbuilds-60c75ff791ce88fe9bddede4997aa2c6dfea5e64.tar.gz slackbuilds-60c75ff791ce88fe9bddede4997aa2c6dfea5e64.tar.xz |
network/thttpd: Updated for version 2.26.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/thttpd/patches/fix-buffer-overflow.diff')
-rw-r--r-- | network/thttpd/patches/fix-buffer-overflow.diff | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/network/thttpd/patches/fix-buffer-overflow.diff b/network/thttpd/patches/fix-buffer-overflow.diff deleted file mode 100644 index cacd732148..0000000000 --- a/network/thttpd/patches/fix-buffer-overflow.diff +++ /dev/null @@ -1,21 +0,0 @@ -diff -Nrup thttpd-2.25b.orig/libhttpd.c thttpd-2.25b/libhttpd.c ---- thttpd-2.25b.orig/libhttpd.c 2003-12-25 19:06:05.000000000 +0000 -+++ thttpd-2.25b/libhttpd.c 2007-01-08 21:43:28.000000000 +0000 -@@ -1469,7 +1469,7 @@ expand_symlinks( char* path, char** rest - httpd_realloc_str( &checked, &maxchecked, checkedlen ); - (void) strcpy( checked, path ); - /* Trim trailing slashes. */ -- while ( checked[checkedlen - 1] == '/' ) -+ while ( checkedlen && checked[checkedlen - 1] == '/' ) - { - checked[checkedlen - 1] = '\0'; - --checkedlen; -@@ -1488,7 +1488,7 @@ expand_symlinks( char* path, char** rest - restlen = strlen( path ); - httpd_realloc_str( &rest, &maxrest, restlen ); - (void) strcpy( rest, path ); -- if ( rest[restlen - 1] == '/' ) -+ if ( restlen && rest[restlen - 1] == '/' ) - rest[--restlen] = '\0'; /* trim trailing slash */ - if ( ! tildemapped ) - /* Remove any leading slashes. */ |