Skip to content

Conversation

@florianGla
Copy link
Contributor

When mutating char[] randomly interpret the bytes from libFuzzer as individual (single byte) chars. This helps to make use of libFuzzers table of recent compare entries (encoded as CESU8) if the char[] is used as a String inside the fuzz test.

When mutating char[] randomly interpret the bytes from libFuzzer as
individual (single byte) chars. This helps to make use of libFuzzers
table of recent compare entries (encoded as CESU8) if the char[] is used
as a String inside the fuzz test.
@florianGla florianGla force-pushed the CIF-1863-string-compares-on-char-arrays branch from ec0033e to 5c73f71 Compare November 7, 2025 13:06
return;
}
String expression = new String(data);
if (expression.contains("jazzer")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be worth testing with non-Latin1 Unicode strings as targets - with pure ASCII you can't be sure whether all of the CESU8 to char[] conversion is done correctly.

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.

4 participants