]> granicus.if.org Git - python/commit
Prevent expandtabs() on string and unicode objects from causing a segfault when
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 9 Jun 2007 04:06:30 +0000 (04:06 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 9 Jun 2007 04:06:30 +0000 (04:06 +0000)
commit66e64e2b6a837bcd95c29a2173d065fdc91f0581
tree9d5574f336188233cbac23d8e079ac16d238b647
parent11c58c4c8d8376565dbb8f04d08d915022ba5028
Prevent expandtabs() on string and unicode objects from causing a segfault when
a large width is passed on 32-bit platforms.  Found by Google.

It would be good for people to review this especially carefully and verify
I don't have an off by one error and there is no other way to cause overflow.
Lib/test/test_str.py
Lib/test/test_unicode.py
Misc/NEWS
Objects/stringobject.c
Objects/unicodeobject.c