commit | a45cb45965e4afa035d5069d30a579898b79f1e3 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jun 08 20:27:29 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jun 08 20:27:29 1998 +0000 |
tree | 828567d9275d2b66778fe500b1ed2d7781f001b8 | |
parent | a63eff6e6aac8325cb3542a2d678cfc69fa8597e [diff] |
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.