You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ShareableList: an empty str/bytes gets a zero-length slot and silently overwrites its neighbour #163051
An empty str or bytes in ShareableList is allocated zero bytes, so it shares its offset with the next item — or with the packing-format metadata when it is the last item. Writing to that slot either raises a misleading ValueError or silently corrupts adjacent data.
Regression from 9348e13 (gh-88336 / GH-26328): ceil(len / 8) is 0 for an empty str/bytes, so the item shares its offset with the next item (or the format metadata) and is silently overwritten.
Unlike gh-145261 and gh-106939, the slot layout itself is wrong here, and the corruption only surfaces on write.
Activity