summaryrefslogtreecommitdiff
path: root/fitz/stm_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/stm_read.c')
-rw-r--r--fitz/stm_read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fitz/stm_read.c b/fitz/stm_read.c
index 3ffb918f..ee3d1cad 100644
--- a/fitz/stm_read.c
+++ b/fitz/stm_read.c
@@ -84,6 +84,7 @@ fz_fill_buffer(fz_stream *stm)
}
fz_catch(stm->ctx)
{
+ /* FIXME: TryLater */
fz_warn(stm->ctx, "read error; treating as end of file");
stm->error = 1;
}
@@ -121,7 +122,7 @@ fz_read_best(fz_stream *stm, int initial, int *truncated)
if (buf->len >= MIN_BOMB && buf->len / 200 > initial)
{
- fz_throw(ctx, "compression bomb detected");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "compression bomb detected");
}
n = fz_read(stm, buf->data + buf->len, buf->cap - buf->len);
@@ -133,6 +134,7 @@ fz_read_best(fz_stream *stm, int initial, int *truncated)
}
fz_catch(ctx)
{
+ /* FIXME: TryLater */
if (truncated)
{
*truncated = 1;