Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 43387 Details for
Bug 70227
app-arch/zip: buffer overflow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
zip-CAN-2004-1010.patch
zip-CAN-2004-1010.patch (text/plain), 673 bytes, created by
Thierry Carrez (RETIRED)
on 2004-11-06 01:34:33 UTC
(
hide
)
Description:
zip-CAN-2004-1010.patch
Filename:
MIME Type:
Creator:
Thierry Carrez (RETIRED)
Created:
2004-11-06 01:34:33 UTC
Size:
673 bytes
patch
obsolete
>--- zip-2.3/unix/unix.c.orig 2004-11-05 15:44:41.000000000 -0500 >+++ zip-2.3/unix/unix.c 2004-11-05 15:50:28.000000000 -0500 >@@ -319,8 +319,8 @@ iztimes *t; /* return value: > a file size of -1 */ > { > struct stat s; /* results of stat() */ >- char name[FNMAX]; >- int len = strlen(f); >+ char *name; >+ size_t len = strlen(f); > > if (f == label) { > if (a != NULL) >@@ -331,6 +331,11 @@ iztimes *t; /* return value: > t->atime = t->mtime = t->ctime = label_utim; > return label_time; > } >+ >+ name = malloc(len+1); >+ if (!name) >+ return 0; >+ > strcpy(name, f); > if (name[len - 1] == '/') > name[len - 1] = '\0';
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 70227
: 43387 |
43406