diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-08-16 10:10:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 10:10:42 (GMT) |
commit | b5176a86bd2587856f88aec3958ad8caef7b11fc (patch) | |
tree | 05d4f4c35fedcef25b71320d992aaca9ff298fe6 /Lib/test/pydocfodder.py | |
parent | aa9707dda9f8dcbe2ada8d8a7280f0f6a8229c59 (diff) | |
download | cpython-b5176a86bd2587856f88aec3958ad8caef7b11fc.zip cpython-b5176a86bd2587856f88aec3958ad8caef7b11fc.tar.gz cpython-b5176a86bd2587856f88aec3958ad8caef7b11fc.tar.bz2 |
[3.12] gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832) (#107874)
* Strings with length from 2**31-1 to 2**32-2 always caused MemoryError,
it doesn't matter how much memory is available.
* Strings with length exactly 2**32-1 caused OSError.
* Strings longer than 2**32-1 characters were truncated due to integer overflow bug.
* Strings containing the null character were truncated at the first null character.
Now strings longer than 2**31-1 characters caused OverflowError and the null character is allowed..
(cherry picked from commit 04cc01453db2f0af72a06440831637f8bf512daf)
Diffstat (limited to 'Lib/test/pydocfodder.py')
0 files changed, 0 insertions, 0 deletions