diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-11-02 21:01:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 21:01:40 (GMT) |
commit | 34637a0ce21e7261b952fbd9d006474cc29b681f (patch) | |
tree | 39914654a8ddafa8a95822ae5d180b154ef1105d /Parser | |
parent | 6fdfcec5b11f44f27aae3d53ddeb004150ae1f61 (diff) | |
download | cpython-34637a0ce21e7261b952fbd9d006474cc29b681f.zip cpython-34637a0ce21e7261b952fbd9d006474cc29b681f.tar.gz cpython-34637a0ce21e7261b952fbd9d006474cc29b681f.tar.bz2 |
bpo-42103: Improve validation of Plist files. (GH-22882)
* 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.
Diffstat (limited to 'Parser')
0 files changed, 0 insertions, 0 deletions