Specify offset 0 as invalid
This commit is contained in:
1 parent
c6cabf9441
commit
f06b18b3ff
2 files changed
+18
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
Decompressor Accepted Invalid Data
|
||||
==================================
|
||||
|
||||
This document describes the behavior of the reference decompressor in cases
|
||||
where it accepts an invalid frame instead of reporting an error.
|
||||
|
||||
Zero offsets converted to 1
|
||||
---------------------------
|
||||
If a sequence is decoded with `literals_length = 0` and `offset_value = 3`
|
||||
while `Repeated_Offset_1 = 1`, the computed offset will be `0`, which is
|
||||
invalid.
|
||||
|
||||
The reference decompressor will process this case as if the computed
|
||||
offset was `1`, including inserting `1` into the repeated offset list.
|
||||
Reference in new issue
Block a user