ref: a61adc76510f4792d61de1e566676aa61b2e493e
parent: 3275df73350782e6972c809301c9c370500b90dd
author: Sebastian Rasmussen <[email protected]>
date: Sun Aug 26 11:16:46 EDT 2018
Bug 699673: jbig2dec: Initialize return code for all cases. Thanks to oss-fuzz for reporting.
--- a/jbig2_arith.c
+++ b/jbig2_arith.c
@@ -298,8 +298,10 @@
jbig2_arith_renormd(as);
*code = 0;
return D;
- } else
+ } else {
+ *code = 0;
return cx >> 7;
+ }
} else {
#ifdef SOFTWARE_CONVENTION
as->C -= (as->A) << 16;