SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72140 0 32 Python

gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832)

* 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.
S
Serhiy Storchaka committed
04cc01453db2f0af72a06440831637f8bf512daf
Parent: a39f0a3
Committed by GitHub <noreply@github.com> on 8/11/2023, 6:13:46 PM