shithub: jbig2

Download patch

ref: 5a0a14decb8c3810e122396dcb7c6b4f5ee4f4f7
parent: b488b851612ca5fa3c54f3b884281d93641293d9
author: Sebastian Rasmussen <sebras@gmail.com>
date: Wed Apr 25 01:01:41 EDT 2018

jbig2dec: Indicate success when using arithmetic decoder.

Commit 2b2dcf4ccf401ed210f03c858b304994749fd2b3 accidentally
forgot to set the out parameter to indicate success when the
call was indeed successful.

--- a/jbig2_arith.c
+++ b/jbig2_arith.c
@@ -300,6 +300,7 @@
                 *pcx ^= pqe->mps_xor;
             }
             jbig2_arith_renormd(as);
+            *code = 0;
             return D;
         } else
             return cx >> 7;
@@ -318,6 +319,7 @@
             *pcx ^= pqe->lps_xor;
         }
         jbig2_arith_renormd(as);
+        *code = 0;
         return D;
     }
 }