You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, note the malloc() argument may suffer from an integer multiplication overflow if these parameters are not bounded elsewhere in the code. I'd like to suggest that all such malloc(a*b) calls check their parameters for overflow, or switch to calloc(), as appropriate. (With three inputs, this one may take more work than usual.)
Thanks
The text was updated successfully, but these errors were encountered:
parameters->numresolution is [3, 3, 1], so matrix_width is 7. Therefore limiting numlayers would be sufficient here. What is a reasonable limit for that value?
The missing check for the result of malloc being NULL is more important.
openjpeg/src/bin/jp3d/opj_jp3d_compress.c
Line 401 in 06f7d41
Hello, note the
malloc()
argument may suffer from an integer multiplication overflow if these parameters are not bounded elsewhere in the code. I'd like to suggest that all suchmalloc(a*b)
calls check their parameters for overflow, or switch tocalloc()
, as appropriate. (With three inputs, this one may take more work than usual.)Thanks
The text was updated successfully, but these errors were encountered: