summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-07-21 00:39:03 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-07-21 00:39:03 (GMT)
commite85bd987c466d8022a2a3d746af2fdf991dcb0e4 (patch)
treeb71d2f07a0ed4e798fcc6dfc560af27adea940df /Objects/stringlib
parent9cdbce2c3f1efa99de939a7bc675bf9ab285f3d3 (diff)
downloadcpython-e85bd987c466d8022a2a3d746af2fdf991dcb0e4.zip
cpython-e85bd987c466d8022a2a3d746af2fdf991dcb0e4.tar.gz
cpython-e85bd987c466d8022a2a3d746af2fdf991dcb0e4.tar.bz2
Merged revisions 73871 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r73871 | alexandre.vassalotti | 2009-07-06 22:17:30 -0400 (Mon, 06 Jul 2009) | 7 lines Grow the allocated buffer in PyUnicode_EncodeUTF7 to avoid buffer overrun. Without this change, test_unicode.UnicodeTest.test_codecs_utf7 crashes in debug mode. What happens is the unicode string u'\U000abcde' with a length of 1 encodes to the string '+2m/c3g-' of length 8. Since only 5 bytes is reserved in the buffer, a buffer overrun occurs. ........
Diffstat (limited to 'Objects/stringlib')
0 files changed, 0 insertions, 0 deletions