summaryrefslogtreecommitdiff
path: root/gpdl/tifftop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpdl/tifftop.c')
-rw-r--r--gpdl/tifftop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpdl/tifftop.c b/gpdl/tifftop.c
index 49f4a7dc9..7bba78490 100644
--- a/gpdl/tifftop.c
+++ b/gpdl/tifftop.c
@@ -249,6 +249,7 @@ tiff_impl_init_job(pl_interp_implementation_t *impl,
tiff->dev = device;
tiff->state = ii_state_identifying;
+ tiff->buffer_full = 0;
return 0;
}
@@ -1187,6 +1188,8 @@ fail_decode:
if (tiff->tiff_buffer) {
gs_free_object(tiff->memory, tiff->tiff_buffer, "tiff_impl_process(tiff_buffer)");
tiff->tiff_buffer = NULL;
+ tiff->buffer_max = 0;
+ tiff->buffer_full = 0;
}
/* We want to bin any data we get up to, but not including
* a UEL. */