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
SnappyOutputStream write(arr, offset, length) should check length is less than the array size or 31-bit integer limit #513
Fixed in #741 (merged). SnappyOutputStream.write and SnappyInputStream.read now validate offset/length against the array (IndexOutOfBoundsException) and reject typed-array ranges whose byte size overflows int. rawWrite/rawRead are now bounds-checked too, through Snappy.arrayCopy. Ships in 1.1.10.9.
Activity
Validate maxCompressedLength and stream array ranges (#741)
xerial commentedon Oct 3, 2026
Fixed in #741 (merged). SnappyOutputStream.write and SnappyInputStream.read now validate offset/length against the array (IndexOutOfBoundsException) and reject typed-array ranges whose byte size overflows int. rawWrite/rawRead are now bounds-checked too, through Snappy.arrayCopy. Ships in 1.1.10.9.