[trunk] Explicitely trigger issue 229, there may be an impact in code execution....
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 11:30:54 +0000 (11:30 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 11:30:54 +0000 (11:30 +0000)
Update issue 229

src/lib/openjp2/opj_intmath.h

index 94512afc71ed5b3c8e20f595147d0ba3b5758994..73d08a28e572cc809959674afc7c12da1bb9d793 100644 (file)
@@ -102,6 +102,7 @@ Divide an integer and round upwards
 @return Returns a divided by b
 */
 static INLINE OPJ_INT32 opj_int_ceildiv(OPJ_INT32 a, OPJ_INT32 b) {
+  assert(b);
        return (a + b - 1) / b;
 }