From 6433d21c43b7eccb5466fa604e8eaf6333a9804a Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Wed, 17 Feb 2021 16:55:24 +0100 Subject: [PATCH] [openjpeg] Release cmake build type Seems that some bugs in openjpeg can be triggered only in release mode. More specifically, I was trying to reproduce https://github.com/uclouvain/openjpeg/issues/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. --- projects/openjpeg/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/openjpeg/build.sh b/projects/openjpeg/build.sh index cd96cf787f35..1bc2da047ed5 100755 --- a/projects/openjpeg/build.sh +++ b/projects/openjpeg/build.sh @@ -17,7 +17,7 @@ mkdir build cd build -cmake .. +cmake -DCMAKE_BUILD_TYPE=Release .. make clean -s make -j$(nproc) -s cd ..