From f0c732452f3f7be3d4168347849520a1183c10d7 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 21 May 2012 08:38:13 +0000 Subject: [PATCH] [trunk] add sentinel when tile_index is null --- libopenjpeg/j2k.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index b84b82ef..7d4d51d6 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -5520,6 +5520,7 @@ opj_bool j2k_read_sot_v2 ( /* Index */ if (p_j2k->cstr_index) { + assert(p_j2k->cstr_index->tile_index != 00); p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tileno = p_j2k->m_current_tile_number; p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_tpsno = l_current_part; -- 2.40.0