Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[openjpeg] Release cmake build type #5209

Merged
merged 1 commit into from Feb 18, 2021

Conversation

andreafioraldi
Copy link
Contributor

@andreafioraldi andreafioraldi commented Feb 17, 2021

Seems that some bugs in openjpeg can be triggered only in release mode.
More specifically, @elManto and I were trying to reproduce uclouvain/openjpeg#1228 using the OSS-Fuzz harness and we 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.

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.
@inferno-chromium
Copy link
Collaborator

i agree, @rouault - ok to merge?

@inferno-chromium
Copy link
Collaborator

seems fine, merging for now.

@inferno-chromium inferno-chromium merged commit f682792 into google:master Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants