Replace the assert in mel_init to an if statement to address an issue with fuzzing. #1436
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Even, Everyone,
This is to address the issue with the Fuzzer in
https://bugs.chromium.org/p/chromium/issues/detail?id=1343737
A wrong sequence should produce erroneous result, but should not cause a crash.
A similar if statement can be added to mel_read(), but this requires more changes -- no fuzzing issue produced for this.
I tried to run openjpeg fuzzing, but I did not know how to tell oss-fuzz what source to use. I tried
python infra/helper.py build_fuzzers --architecture x86_64 --sanitizer address openjpeg ~/openjpeg
The first time, it ran with an error message at the end about conformance.
The second time, it is producing an error
mkdir: cannot create directory 'build': File exists
, but I do not know where this folder is to delete it.I am happy to run fuzzing on this pull request.
Kind regards,
Aous.
PS: There is another small modification, unrelated to Chromium fuzzer, to some quantities to make them more meaningful, but let's get this thing through.