Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 261029 Details for
Bug 353080
app-emulation/x48-0.6.3 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated fix for strcpy+malloc overflow bugs
x48-0.6.3-off-by-one.patch (text/plain), 770 bytes, created by
Kevin McCarthy (RETIRED)
on 2011-01-29 18:25:00 UTC
(
hide
)
Description:
Updated fix for strcpy+malloc overflow bugs
Filename:
MIME Type:
Creator:
Kevin McCarthy (RETIRED)
Created:
2011-01-29 18:25:00 UTC
Size:
770 bytes
patch
obsolete
>--- x48-0.6.3.orig/src/debugger.c 2011-01-29 12:58:24.432244663 -0500 >+++ x48-0.6.3/src/debugger.c 2011-01-29 13:06:46.750769284 -0500 >@@ -1919,10 +1919,7 @@ > free (cl); > cl = (char *) 0; > } >- if (old_line) >- cl = strcpy ((char *) malloc (strlen (old_line)), old_line); >- else >- cl = strcpy ((char *) malloc (strlen ("(null)")), "(null)"); >+ cl = strdup (old_line == NULL ? "(null)" : old_line); > } > else > { >@@ -1936,8 +1933,8 @@ > free (old_line); > old_line = (char *) 0; > } >- cl = strcpy ((char *) malloc (strlen (rl)), rl); >- old_line = strcpy ((char *) malloc (strlen (rl)), rl); >+ cl = strdup (rl); >+ old_line = strdup (rl); > #ifdef HAVE_READLINE > add_history (rl); > #endif
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 353080
:
260940
|
260941
| 261029 |
261030
|
261102
|
261119
|
261120
|
261122