diff options
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/filt_basic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fitz/filt_basic.c b/fitz/filt_basic.c index ef6dc920..378abe21 100644 --- a/fitz/filt_basic.c +++ b/fitz/filt_basic.c @@ -46,6 +46,8 @@ fz_open_null(fz_stream *chain, int len, int offset) struct null_filter *state; fz_context *ctx = chain->ctx; + if (len < 0) + len = 0; fz_try(ctx) { state = fz_malloc_struct(ctx, struct null_filter); |