Change gif workbuf_len worst case from 1 to 0

This commit is contained in:
Nigel Tao committed 2020-02-05 17:30:51 +11:00
1 parent 555e8eaaa3
commit 3fd6aca365
6 files changed
+13 -23

No files matched your search

-4
View File
@@ -957,10 +957,6 @@ pri func decoder.decode_id_part2?(dst: ptr base.pixel_buffer, src: base.io_reade
args.src.skip32_fast!(actual: 1, worst_case: 1)
}
if decoder_workbuf_len_max_incl_worst_case > args.workbuf.length() {
return base."#bad workbuf length"
}
while.inner true {
if (this.compressed_ri > this.compressed_wi) or (this.compressed_wi > 4096) {
return "#internal error: inconsistent ri/wi"