gh-135241: Make unpickling of booleans in protocol 0 more strict (GH-135242)
The Python pickle module looks for "00" and "01" but _pickle only looked for 2 characters that parsed to 0 or 1, meaning some payloads like "+0" or " 0" would lead to different results in different implementations.
J
Justin Applegate committed
781294019db1247e6197d658cfcbc35c8c0ae25f
Parent: 0cbbfc4
Committed by GitHub <noreply@github.com>
on 8/14/2025, 7:22:37 PM