From dd59233dd4161ee14701e4ab1229ac7416f62b78 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 12 Mar 2014 06:15:51 +0000 Subject: [PATCH] Fix a segfault that would occur in decompress-only mode if -alloc was specified without -tile. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1155 632fc199-4ca6-4c93-a231-07263d6284db --- tjbench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tjbench.c b/tjbench.c index 4f1e327..f135da4 100644 --- a/tjbench.c +++ b/tjbench.c @@ -521,7 +521,7 @@ void dodecomptest(char *filename) _throwunix("allocating JPEG size array"); memset(jpegsize, 0, sizeof(unsigned long)*ntilesw*ntilesh); - if((flags&TJFLAG_NOREALLOC)!=0) + if((flags&TJFLAG_NOREALLOC)!=0 || !dotile) for(i=0; i