Add libmobi fuzzing integration#15449
Open
S3DFX-CYBER wants to merge 13 commits intogoogle:masterfrom
Open
Conversation
|
S3DFX-CYBER is integrating a new project: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
libmobi is a C library for
reading, writing, and converting MOBI/KF8/KF7 ebook files. It is used
by widely deployed tools including Calibre and KOReader to process
user-supplied ebook files, making it a meaningful target for malformed
input fuzzing.
Fuzz Targets
fuzz_loadmobi_load_file()— PalmDB header, record list, MOBI/EXTH header parsingfuzz_parse_rawmlfuzz_huffmanBuild System
autotools (
./autogen.sh+./configure+make)Static library build with
--disable-shared --enable-staticLocal Testing
All three fuzz targets were built and run locally using the OSS-Fuzz
helper before submission:
python3 infra/helper.py build_image libmobi ✓
python3 infra/helper.py build_fuzzers libmobi ✓
python3 infra/helper.py run_fuzzer libmobi fuzz_load ✓
python3 infra/helper.py run_fuzzer libmobi fuzz_parse_rawml ✓
python3 infra/helper.py run_fuzzer libmobi fuzz_huffman ✓
Tested with
FUZZING_ENGINE=libfuzzerandSANITIZER=addressonlinux/amd64.Why libmobi qualifies
user-supplied sources
real bug surface exists