]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568) (GH-127813)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Dec 2024 11:50:51 +0000 (12:50 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Dec 2024 11:50:51 +0000 (12:50 +0100)
commit320a1dcd97110598a4fe6ae1c0018cd3decc408f
treea3734f43a3f9721acd5d7d4431ae7eb0fdfae740
parentb0615a8a9aa26480025a1e82a9693097a8520e46
[3.12] gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568) (GH-127813)

This fixes a UBSan failure (unaligned zero-size memcpy) in `dictobject.c`.
(cherry picked from commit 9af96f440618304e7cc609c246e1f8c8b2d7a119)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Objects/dictobject.c