diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-15 06:16:49 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-15 06:16:49 +0000 |
commit | c7975ea767a9c74340ff40ec7f976e1e157f3e46 (patch) | |
tree | 7b05fd1978b2ef6def38e8d104b6e99751b9eab0 /emulators/extract-xiso/files/patch-extract-xiso.c | |
parent | d380d8cedf0f2a0c4f33a377d63e88bf98f26660 (diff) |
Notes
Diffstat (limited to 'emulators/extract-xiso/files/patch-extract-xiso.c')
-rw-r--r-- | emulators/extract-xiso/files/patch-extract-xiso.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/emulators/extract-xiso/files/patch-extract-xiso.c b/emulators/extract-xiso/files/patch-extract-xiso.c index 6ea56f909f28..d63ad1e1273d 100644 --- a/emulators/extract-xiso/files/patch-extract-xiso.c +++ b/emulators/extract-xiso/files/patch-extract-xiso.c @@ -1,23 +1,11 @@ ---- extract-xiso.c.orig Fri Sep 30 15:49:47 2005 -+++ extract-xiso.c Fri Sep 30 15:50:29 2005 -@@ -215,7 +215,7 @@ - #include <sys/types.h> +--- extract-xiso.c.orig Sat Jan 28 09:16:25 2006 ++++ extract-xiso.c Sat Mar 4 12:15:59 2006 +@@ -236,7 +236,7 @@ + #if defined( __FREEBSD__ ) - #include <machine/limits.h> + #include <limits.h> #endif - #if ! defined( NO_FTP ) -@@ -1345,6 +1345,11 @@ - if ( ! err ) { - if ( read( in_xiso, dir->filename, dir->filename_length ) != dir->filename_length ) read_err(); - if ( ! err ) dir->filename[ dir->filename_length ] = 0; -+ if (strstr(dir->filename,"..") || strchr(dir->filename, '/') || strchr(dir->filename, '\\')) -+ { -+ printf("Filename contains invalid characters"); -+ exit(1); -+ } - } - - if ( ! err && in_mode == k_generate_avl ) { + |