]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625)
authorAntoine Pitrou <antoine@python.org>
Mon, 20 Apr 2020 19:22:50 +0000 (21:22 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2020 19:22:50 +0000 (21:22 +0200)
commit887ff8e37e238fbce18c647e588283904f38ab24
tree51e36929d3e7dcf3b89c54054028faf664bc4cf9
parent81de3c225774179cdc82a1733a64e4a876ff02b5
[3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625)

The item size must be checked after encoding to bytes, not before.

Automerge-Triggered-By: @pitrou.
(cherry picked from commit eba9f6155df59c9beed97fb5764c9f01dd941af0)

Co-authored-by: Antoine Pitrou <antoine@python.org>
Lib/multiprocessing/shared_memory.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst [new file with mode: 0644]