diff options
| author | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-12-20 13:03:11 +0000 |
|---|---|---|
| committer | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-12-20 13:03:11 +0000 |
| commit | e966fef3eba04cf008852f89dcf71cd5a2dfcb40 (patch) | |
| tree | 7202d0a3edbcaa99f4dbc0d0ed205cd8b719d4c2 /src/lib/openjp2/t1.c | |
| parent | a504edf724f9516e8cc50d3366bf42c9865b05b0 (diff) | |
[trunk] fixed a possible overflow in opj_t1_encode_cblks call to opj_int_fix_mul (fixes issue 141)
Diffstat (limited to 'src/lib/openjp2/t1.c')
| -rw-r--r-- | src/lib/openjp2/t1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/openjp2/t1.c b/src/lib/openjp2/t1.c index e61cd3c9..8cb230f4 100644 --- a/src/lib/openjp2/t1.c +++ b/src/lib/openjp2/t1.c @@ -1534,9 +1534,9 @@ OPJ_BOOL opj_t1_encode_cblks( opj_t1_t *t1, for (i = 0; i < cblk_w; ++i) { OPJ_INT32 tmp = tiledp[tileIndex]; tiledp[tileIndex] = - opj_int_fix_mul( + opj_int_fix_mul_t1( tmp, - bandconst) >> (11 - T1_NMSEDEC_FRACBITS); + bandconst); tileIndex++; } tileIndex += tileLineAdvance; |
