FreeBSD Bugzilla – Attachment 64079 Details for
Bug 95397
[patch] archivers/zoo buffer overflow fix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
zoo.diff
zoo.diff (text/plain), 1.09 KB, created by
Petr Rehor
on 2006-04-06 08:10:12 UTC
(
hide
)
Description:
zoo.diff
Filename:
MIME Type:
Creator:
Petr Rehor
Created:
2006-04-06 08:10:12 UTC
Size:
1.09 KB
patch
obsolete
>diff -urN /usr/ports/archivers/zoo/Makefile Makefile >--- /usr/ports/archivers/zoo/Makefile Tue Nov 15 22:57:44 2005 >+++ Makefile Thu Apr 6 08:47:30 2006 >@@ -7,7 +7,7 @@ > > PORTNAME= zoo > PORTVERSION= 2.10.1 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= archivers > MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/arcers/ > DISTNAME= zoo-2.10pl1 >diff -urN /usr/ports/archivers/zoo/files/patch-misc.c files/patch-misc.c >--- /usr/ports/archivers/zoo/files/patch-misc.c Thu Jan 1 01:00:00 1970 >+++ files/patch-misc.c Thu Apr 6 08:45:48 2006 >@@ -0,0 +1,20 @@ >+--- misc.c.orig Tue Jul 16 17:52:54 1991 >++++ misc.c Thu Apr 6 08:45:41 2006 >+@@ -135,11 +135,16 @@ >+ char *fullpath (direntry) >+ struct direntry *direntry; >+ { >+- static char result[PATHSIZE]; >++ static char result[PATHSIZE+PATHSIZE+12]; /* Room for enough space */ >+ combine (result, >+ direntry->dirlen != 0 ? direntry->dirname : "", >+ (direntry->namlen != 0) ? direntry->lfname : direntry->fname >+ ); >++ >++ if (strlen (result) >= PATHSIZE) { >++ prterror ('f', "Combined dirname and filename too long\n"); >++ } >++ >+ return (result); >+ } >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 95397
: 64079
Working