diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-11-03 07:32:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 07:32:15 (GMT) |
commit | 547d2bcc55e348043b2f338027c1acd9549ada76 (patch) | |
tree | 04713e0abf554f0c427d4ffb5c4a23911e7f5863 /Python/getcompiler.c | |
parent | 1e96de9ed4b1ca96d345b7e309a8fe3802638f4a (diff) | |
download | cpython-547d2bcc55e348043b2f338027c1acd9549ada76.zip cpython-547d2bcc55e348043b2f338027c1acd9549ada76.tar.gz cpython-547d2bcc55e348043b2f338027c1acd9549ada76.tar.bz2 |
[3.8] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23116)
* Prevent some possible DoS attacks via providing invalid Plist files
with extremely large number of objects or collection sizes.
* Raise InvalidFileException for too large bytes and string size instead of returning garbage.
* Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN).
* Raise InvalidFileException instead of TypeError for non-hashable dict keys.
* Add more tests for invalid Plist files.
(cherry picked from commit 34637a0ce21e7261b952fbd9d006474cc29b681f)
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions