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, I believe the sample->sample_size - 8 calculation in this segment may lead to an integer underflow issue if the sample size is e.g. 4, where a huge amount of memory is allocated, a huge read is attempted (but the fread(3) return value is ignored, so a short read won't be noticed), and then a huge fwrite(3) is attempted with probable garbage values in most of the allocated buffer.
Thanks
The text was updated successfully, but these errors were encountered:
openjpeg/src/bin/mj2/opj_mj2_extract.c
Line 149 in 06f7d41
Hello, I believe the
sample->sample_size - 8
calculation in this segment may lead to an integer underflow issue if the sample size is e.g.4
, where a huge amount of memory is allocated, a huge read is attempted (but thefread(3)
return value is ignored, so a short read won't be noticed), and then a hugefwrite(3)
is attempted with probable garbage values in most of the allocated buffer.Thanks
The text was updated successfully, but these errors were encountered: