mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
std/brotli: report a too-short q10/q11 workbuf as bad workbuf length
This commit is contained in:
3 files changed
+8
-11
No files matched your search
@@ -987,7 +987,7 @@ pri func encoder.encode_data!(wb: slice base.u8, is_last: base.bool, force_flush
|
||||
is_last: args.is_last, prev_byte: this.prev_byte, prev_byte2: this.prev_byte2,
|
||||
s: args.wb[.. storage_len])
|
||||
if this.hq_insufficient {
|
||||
return "#insufficient workbuf length"
|
||||
return base."#bad workbuf length"
|
||||
}
|
||||
ix = this.bw_ix >> 3
|
||||
this.last_bytes = this.byte_at(s: args.wb, i: ix) as base.u32
|
||||
|
||||
Reference in new issue
Block a user