Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 323986 Details for
Bug 434198
=dev-db/xbsql-0.11-r1 : _FORTIFY_SOURCE reports presence of overflows
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
1.patch
xbsql-0.11-bufferoverflowstrncat.patch (text/plain), 969 bytes, created by
Pacho Ramos
on 2012-09-16 10:42:59 UTC
(
hide
)
Description:
1.patch
Filename:
MIME Type:
Creator:
Pacho Ramos
Created:
2012-09-16 10:42:59 UTC
Size:
969 bytes
patch
obsolete
>--- xbsql/xbsql.cpp~ 2012-09-16 12:35:05.000000000 +0200 >+++ xbsql/xbsql.cpp 2012-09-16 12:40:28.465720698 +0200 >@@ -468,7 +468,7 @@ > char name[256] ; > > strncpy (name, table, sizeof(name)) ; >- strncat (name, "_", sizeof(name)) ; >+ strncat (name, "_", sizeof(name) -strlen(name) -1) ; > strncat (name, fSet.getFieldName (idx), sizeof(name)) ; > > path = getPath (name, "ndx") ; >@@ -874,10 +874,10 @@ > const char *fname = fSet.getFieldName (idx) ; > > strncpy (_oldName, oldName, sizeof(_oldName)) ; >- strncat (_oldName, "_", sizeof(_oldName)) ; >+ strncat (_oldName, "_", sizeof(_oldName)- strlen(_oldName) -1) ; > strncat (_oldName, fname, sizeof(_oldName)) ; > strncpy (_newName, newName, sizeof(_newName)) ; >- strncat (_newName, "_", sizeof(_newName)) ; >+ strncat (_newName, "_", sizeof(_newName) - strlen(newName) - 1) ; > strncat (_newName, fname, sizeof(_newName)) ; > > oldAnon = getPath (_oldName, "ndx") ;
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 434198
:
323128
| 323986