summaryrefslogtreecommitdiff
path: root/libopenjpeg/t2.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2010-10-05 20:25:01 +0000
committerAntonin Descampe <antonin@gmail.com>2010-10-05 20:25:01 +0000
commitdea5c48227a14a5a49bc9b6aef4816ee0bb3ca02 (patch)
treec87c5a274219d79d29cd5111d79c2707108935ab /libopenjpeg/t2.c
parent68e1771ae5fba3f4bd338dcd2be889ca0f4fc2e6 (diff)
fixed problems with partial decodes (non-zero value for cp_reduce) that can cause corrupted images and crashes (issue 41) - thanks to Sheet Spotter
Diffstat (limited to 'libopenjpeg/t2.c')
-rw-r--r--libopenjpeg/t2.c1
1 files changed, 1 insertions, 0 deletions
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;
}