diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-11-10 19:57:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 19:57:32 (GMT) |
commit | a63234c49b2fbfb6f0aca32525e525ce3d43b2b4 (patch) | |
tree | 3b068f72046f5495a8372e4edaf3769372bf2472 /Python/getcompiler.c | |
parent | a75c4c924de102e48faef5538eade764289915ab (diff) | |
download | cpython-a63234c49b2fbfb6f0aca32525e525ce3d43b2b4.zip cpython-a63234c49b2fbfb6f0aca32525e525ce3d43b2b4.tar.gz cpython-a63234c49b2fbfb6f0aca32525e525ce3d43b2b4.tar.bz2 |
[3.6] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23118)
* 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)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions