mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Bounds check "x | y".
This commit is contained in:
1 parent
ca78c343cb
commit
509e6b48a4
3 files changed
+84
-3
No files matched your search
@@ -21,7 +21,7 @@ pub func lzw_decoder.decode?(dst ptr io.buf1, src ptr io.buf1, src_final bool)()
|
||||
post n_bits >= width,
|
||||
{
|
||||
assert n_bits < 12 via "a < b: a < c <= b"(c:width)
|
||||
// TODO.
|
||||
bits |= 0 // TODO.
|
||||
n_bits += 8
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user