From dea5c48227a14a5a49bc9b6aef4816ee0bb3ca02 Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Tue, 5 Oct 2010 20:25:01 +0000 Subject: [PATCH] fixed problems with partial decodes (non-zero value for cp_reduce) that can cause corrupted images and crashes (issue 41) - thanks to Sheet Spotter --- libopenjpeg/t2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index 18397e33..a29779f1 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -921,6 +921,7 @@ static bool t2_skip_packet_data( while (l_cblk->numnewpasses > 0); ++l_cblk; } + ++l_band; } return true; } -- 2.30.2