From: Mathieu Malaterre Date: Mon, 3 Mar 2014 11:30:54 +0000 (+0000) Subject: [trunk] Explicitely trigger issue 229, there may be an impact in code execution.... X-Git-Tag: version.2.0.1~4^2~151 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=16febebd28aafe8a47472d669b399dded8f84c5e;p=openjpeg.git [trunk] Explicitely trigger issue 229, there may be an impact in code execution. The assert may get removed afterward Update issue 229 --- diff --git a/src/lib/openjp2/opj_intmath.h b/src/lib/openjp2/opj_intmath.h index 94512afc..73d08a28 100644 --- a/src/lib/openjp2/opj_intmath.h +++ b/src/lib/openjp2/opj_intmath.h @@ -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; }