From 6a77dafc0d91aedd529fffa111e7fc62e1699b24 Mon Sep 17 00:00:00 2001 From: siana Date: Tue, 28 Dec 2010 19:34:15 +0100 Subject: [PATCH] More OpenJpeg crash fix --- indra/libopenjpeg/tcd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/libopenjpeg/tcd.c b/indra/libopenjpeg/tcd.c index 8f2f24329..d29a0157b 100644 --- a/indra/libopenjpeg/tcd.c +++ b/indra/libopenjpeg/tcd.c @@ -1403,6 +1403,11 @@ bool tcd_decode_tile(opj_tcd_t *tcd, unsigned char *src, int len, int tileno, op } } + if(!tilec->data) { + opj_event_msg(tcd->cinfo, EVT_ERROR, "Error decoding tile. null data\n"); + return false; + } + numres2decode = tcd->image->comps[compno].resno_decoded + 1; if(numres2decode > 0){ if (tcd->tcp->tccps[compno].qmfbid == 1) {