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
When trying to decompress a .jp2 file to a .pgm file, opj_decompress will parse each code block. However, if a malformatted file with an extremely large amount of code blocks is received by openjpeg, it will keep parsing the blocks and finally exhaust all the memory of the OS.
Expected behavior and actual behavior.
When trying to decompress a
.jp2
file to a.pgm
file,opj_decompress
will parse each code block. However, if a malformatted file with an extremely large amount of code blocks is received byopenjpeg
, it will keep parsing the blocks and finally exhaust all the memory of the OS.Steps to reproduce the problem.
POC
It's better to set timeout in case that server gets down because of the exhaustion of memory space.
At the same time, use
htop
to checkout memory occupied status.Operating system
Ubuntu 20.04 with kernel 5.4.0.
openjpeg version
commit: a589155
openjp2 library v2.5.0
The text was updated successfully, but these errors were encountered: