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
JenkinsLookup3.decode can repeat a one-byte payload across an oversized output #894
The checksum is valid for b"x", but the four bytes returned to the caller are different. The codec API requires an output buffer of exactly the decoded size, so I expected a size error before any write.
Correctly sized buffers fail in the other direction. With a 12-byte payload, an output array of shape (2, 3) and dtype uint16 raises a broadcasting error, and a 12-byte bytearray raises an AttributeError. All three cases go through the Jenkins decoder's direct byte-view assignment.
Reproduced using the NumCodecs 0.17.1 and NumPy 2.5.4 wheels on CPython 3.12.11, macOS arm64. Codex assisted with reproduction.
Activity