]> granicus.if.org Git - python/commit
Backport fixes for the code that decodes octal escapes (and for PyString
authorGuido van Rossum <guido@python.org>
Mon, 29 Oct 2007 22:15:05 +0000 (22:15 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 29 Oct 2007 22:15:05 +0000 (22:15 +0000)
commit1c1ac3815716b9db9c41111e65919689b41e6d34
treeac779e7252c2455bddeed257fa21b85f6e9a0096
parentdff51b2898145d4f9c5db669db4f9ef5a67ab4b5
Backport fixes for the code that decodes octal escapes (and for PyString
also hex escapes) -- this was reaching beyond the end of the input string
buffer, even though it is not supposed to be \0-terminated.
This has no visible effect but is clearly the correct thing to do.
(In 3.0 it had a visible effect after removing ob_sstate from PyString.)
Objects/stringobject.c
Objects/unicodeobject.c