]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
When unmarshalling, add test for negative lengths on strings, tuples
authorGuido van Rossum <guido@python.org>
Mon, 8 Jun 1998 20:27:29 +0000 (20:27 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 8 Jun 1998 20:27:29 +0000 (20:27 +0000)
commita45cb45965e4afa035d5069d30a579898b79f1e3
tree828567d9275d2b66778fe500b1ed2d7781f001b8
parenta63eff6e6aac8325cb3542a2d678cfc69fa8597e
When unmarshalling, add test for negative lengths on strings, tuples
and lists; if the size is negative, raise an exception.  Also raise an
exception when an undefined type is found -- all this to increase the
chance that garbage input causes an exception instead of a core dump.
Python/marshal.c