]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
- Issue #2587: In the C API, PyString_FromStringAndSize() takes a signed size
authorMatthias Klose <doko@ubuntu.com>
Wed, 12 Nov 2008 07:21:52 +0000 (07:21 +0000)
committerMatthias Klose <doko@ubuntu.com>
Wed, 12 Nov 2008 07:21:52 +0000 (07:21 +0000)
commitb7cfda132406bd0a4f626610657fd9b1e0e63f65
treef0eecc9c7b1389ce6cc9844fa008c45eb8b2f481
parent8af5d5791bd08c3ac206c1ea1326150718858ca9
- Issue #2587: In the C API, PyString_FromStringAndSize() takes a signed size
  parameter but was not verifying that it was greater than zero.  Values
  less than zero will now raise a SystemError and return NULL to indicate a
  bug in the calling C code. CVE-2008-1887.

  backport r62261, r62271
Misc/NEWS
Objects/stringobject.c