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
fix: reject negative n in read_bytes and peek_bytes
read_bytes(-n) silently decremented _pos, corrupting the buffer and
allowing re-reads of already-consumed data. peek_bytes(-n) returned
empty bytes without error. Both now raise ValueError for negative n.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments