Skip to content

Commit

Permalink
[openjpeg] Release cmake build type
Browse files Browse the repository at this point in the history
Seems that some bugs in openjpeg can be triggered only in release mode.
More specifically, I was trying to reproduce uclouvain/openjpeg#1228 using the OSS-Fuzz harness and I failed.
I figured out that the bug is indeed reachable by the harness, but can be uncovered only in Release mode, otherwise, an assertion error blocks it.
I guess that they use assertions only in Debug mode (WTF) and remove them in Release.
So, IMO openjpeg should be fuzzed in Release mode as the configuration used in production is the one relevant for security.
  • Loading branch information
andreafioraldi authored Feb 17, 2021
1 parent 587a0bd commit 6433d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/openjpeg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

mkdir build
cd build
cmake ..
cmake -DCMAKE_BUILD_TYPE=Release ..
make clean -s
make -j$(nproc) -s
cd ..
Expand Down

0 comments on commit 6433d21

Please sign in to comment.