diff options
author | Guido van Rossum <guido@python.org> | 2002-03-01 22:24:49 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-03-01 22:24:49 +0000 |
commit | 4059f1e886f355ed776d84ca22096beed952026b (patch) | |
tree | 4cd64024b5294b6511f2e286a35ca32f256867b0 /Python/exceptions.c | |
parent | 4e01efd676fc98f582a06a9060d59977423bcc4b (diff) | |
download | cpython-4059f1e886f355ed776d84ca22096beed952026b.tar.gz |
SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects
Due to the bizarre definition of _PyLong_Copy(), creating an instance
of a subclass of long with a negative value could cause core dumps
later on. Unfortunately it looks like the behavior of _PyLong_Copy()
is quite intentional, so the fix is more work than feels comfortable.
This fix is almost, but not quite, the code that Naofumi Honda added;
in addition, I added a test case.
Diffstat (limited to 'Python/exceptions.c')
0 files changed, 0 insertions, 0 deletions