From 9286858573ef5e430ac2fb24c274a6fcd41a1edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 7 Mar 2023 20:25:49 +0100 Subject: Bump Wuffs --- fiv-io.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fiv-io.c') diff --git a/fiv-io.c b/fiv-io.c index 0c4d0e5..74dd56e 100644 --- a/fiv-io.c +++ b/fiv-io.c @@ -633,9 +633,8 @@ load_wuffs_frame(struct load_wuffs_frame_context *ctx, GError **error) if (!wuffs_base__status__is_ok(&status)) { set_error(error, wuffs_base__status__message(&status)); - // The PNG decoder, at minimum, will flush any pixel data, so use them. - if (status.repr != wuffs_base__suspension__short_read) - goto fail; + // The PNG decoder, at minimum, will flush any pixel data upon + // finding out that the input is truncated, so accept whatever we get. } if (ctx->target) { -- cgit v1.2.3