YC

Results 5 comments of YC

@szukw000, you need to build it with address sanitizer to detect the bug.

I also reproduced it on released version [2.3.1](https://github.com/uclouvain/openjpeg/releases/tag/v2.3.1) released on Apr 2, 2019. This bug affects released versions 2.3.1 ~ 2.4.0.

@CityOfLight77 there is no need to build it with AFL. Both of GCC and Clang supports ASAN, just build it as I said above: ```bash CFLAGS='-g -fsanitize=address' cmake .. -DCMAKE_BUILD_TYPE=Release...

Hi @szukw000, It seems like you didn't compile it with ASAN successfully, where did you add the compiler flags? I can confirm that the following script can reproduce the bug...