]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40330: Fix utf-8 size check in ShareableList (GH-19606)
authorAntoine Pitrou <antoine@python.org>
Mon, 20 Apr 2020 18:54:55 +0000 (20:54 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2020 18:54:55 +0000 (11:54 -0700)
commiteba9f6155df59c9beed97fb5764c9f01dd941af0
treef07cef322962795cd4ed0d71f74f9069580b16a5
parent5dd21f5d1c9b5a9316deca4535932675f04efeee
bpo-40330: Fix utf-8 size check in ShareableList (GH-19606)

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

Automerge-Triggered-By: @pitrou
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]