diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2020-11-10 19:54:15 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 19:54:15 (GMT) |
| commit | 225e3659556616ad70186e7efc02baeebfeb5ec4 (patch) | |
| tree | 5e3caa9f0fe900f6dd9a9b72a7869264aa77238f /Python/pythonrun.c | |
| parent | dd2804790dfa116d20e37bc6b4463c07586da76c (diff) | |
| download | cpython-225e3659556616ad70186e7efc02baeebfeb5ec4.zip cpython-225e3659556616ad70186e7efc02baeebfeb5ec4.tar.gz cpython-225e3659556616ad70186e7efc02baeebfeb5ec4.tar.bz2 | |
[3.7] bpo-42103: Improve validation of Plist files. (GH-22882) (#23117)
* 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/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
