[3.8] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23… · python/cpython@547d2bc · GitHub
Skip to content

Commit 547d2bc

Browse files
[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 34637a0)
1 parent 1e96de9 commit 547d2bc

4 files changed

Lines changed: 366 additions & 61 deletions

File tree

Lib/plistlib.py

Lines changed: 21 additions & 12 deletions

0 commit comments

Comments
 (0)