Add comprehensive fuzzer suite for improved OSS-Fuzz coverage #1615
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.
Summary
This PR adds 10 new fuzz targets to significantly improve OSS-Fuzz code coverage from the current ~50% to an estimated 85-95%. The new fuzzers cover previously untested code paths including encoder APIs, tile-based operations, MCT, and metadata functions.
New Fuzz Targets
opj_compress_fuzzeropj_tile_fuzzeropj_get_decoded_tile, etc.)opj_decode_area_fuzzeropj_roundtrip_fuzzeropj_components_fuzzeropj_tiled_encoder_fuzzeropj_write_tile)opj_dump_info_fuzzeropj_mct_fuzzeropj_encoder_options_fuzzeropj_subsampled_fuzzerAdditional Improvements
Previously Uncovered Functions Now Tested
opj_write_tile,opj_image_tile_createopj_get_decoded_tile,opj_read_tile_header,opj_decode_tile_dataopj_set_decode_area,opj_set_decoded_componentsopj_set_MCT,opj_encoder_set_extra_optionsopj_get_cstr_info,opj_get_cstr_index,opj_dump_codecopj_decoder_set_strict_mode,opj_codec_set_threadsTest Plan