summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-11-28 11:47:00 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-11-28 11:47:00 (GMT)
commitd4c0a9c59b399bfa0d36030663f78aa18a68e051 (patch)
tree86bc79d1907b7ca06135eaf0921dbfe11d8451ab /Objects
parent5107b4cf5fa4d748bab4022531e6c5741f31e196 (diff)
downloadcpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.zip
cpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.tar.gz
cpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.tar.bz2
Fixes for possible buffer overflows in sprintf() usages.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/weakrefobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c
index e9d0b4b..6261a87 100644
--- a/Objects/weakrefobject.c
+++ b/Objects/weakrefobject.c
@@ -135,7 +135,7 @@ weakref_repr(PyWeakReference *self)
(long)(self));
}
else {
- sprintf(buffer, "<weakref at %#lx; to '%s' at %#lx>",
+ sprintf(buffer, "<weakref at %#lx; to '%.50s' at %#lx>",
(long)(self), PyWeakref_GET_OBJECT(self)->ob_type->tp_name,
(long)(PyWeakref_GET_OBJECT(self)));
}