mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Fix ignore_too_much_pixel_data infinite loop
This commit is contained in:
1 parent
74a591ab2b
commit
5780b406dc
5 files changed
+81
-4
No files matched your search
@@ -1009,8 +1009,10 @@ pri func decoder.copy_to_image_buffer!(pb ptr base.pixel_buffer, src slice base.
|
||||
while src_ri < args.src.length() {
|
||||
src = args.src[src_ri:]
|
||||
|
||||
if (this.dst_y >= this.frame_rect_y1) and
|
||||
(not this.quirk_enabled_ignore_too_much_pixel_data) {
|
||||
if this.dst_y >= this.frame_rect_y1 {
|
||||
if this.quirk_enabled_ignore_too_much_pixel_data {
|
||||
return ok
|
||||
}
|
||||
return base."#too much data"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user