std/brotli: report a too-short q10/q11 workbuf as bad workbuf length

This commit is contained in:
Claude committed 2026-10-27 02:53:07 +00:00
1 parent bef6ffc1bd
commit c8bd30dd43
3 files changed
+8 -11

No files matched your search

+1 -1
View File
@@ -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