Skip to content

Conversation

oetr
Copy link
Contributor

@oetr oetr commented Sep 15, 2025

Since users are free to change fuzz test signature, readExclusive might return byte arrays longer than maxLength. Calling libfuzzer's Mutate with maxSize that is less than the length of the array to be mutated might result in a segfault at the time when the data type is used in Java. Some of libfuzzer's mutators (Mutate_AddWordFromTORC) are not designed to handle this case and will mutate past the array bounds.

@oetr oetr force-pushed the CIF-1798-segfault-after-mutation branch from cf7379e to 907af9b Compare September 15, 2025 14:23
…sive

Since users are free to change fuzz test signature, readExclusive might return
byte arrays longer than maxLength. Calling libfuzzer's Mutate with maxSize that is less
than the length of the array to be mutated might result in a segfault at the time when the
data type is used in Java. Some of libfuzzer's mutators (Mutate_AddWordFromTORC) are not
designed to handle this case and will mutate past the array bounds.

Co-authored-by: Simon Resch <simon.resch@code-intelligence.com>
@oetr oetr force-pushed the CIF-1798-segfault-after-mutation branch from 907af9b to 8c2f9db Compare September 18, 2025 08:15
@oetr oetr requested a review from simonresch September 18, 2025 08:36
@simonresch simonresch merged commit 35c3b61 into main Sep 18, 2025
8 checks passed
@simonresch simonresch deleted the CIF-1798-segfault-after-mutation branch September 18, 2025 10:44
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.

3 participants