ALT Linux Bugzilla
– Attachment 3690 Details for
Bug 20842
не собирается
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
no buffer overflow
gdkevent.patch (text/plain), 583 bytes, created by
real@altlinux.org
on 2009-07-24 13:48:18 MSD
(
hide
)
Description:
no buffer overflow
Filename:
MIME Type:
Creator:
real@altlinux.org
Created:
2009-07-24 13:48:18 MSD
Size:
583 bytes
patch
obsolete
>diff --git a/pygtk/gtk/gdkevent.override b/pygtk/gtk/gdkevent.override >index 3c0501d..839e59f 100644 >--- a/pygtk/gtk/gdkevent.override >+++ b/pygtk/gtk/gdkevent.override >@@ -354,8 +354,9 @@ _wrap_gdk_event_tp_setattr(PyObject *self, char *attr, PyObject *value) > char *tmp; > STRING_CHECK(); > tmp = PyString_AsString(value); >- strncpy((char *) &event->client.data, tmp, >- sizeof(event->client.data)); >+ strncpy((char *) &event->client.data, tmp, 19); >+ if (strnlen(tmp) > 20) >+ event->client.data[20] = '\0'; > return 0; > } > break;
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 20842
: 3690 |
3691