Skip to content

Fix fuzzer input generation issues (#720)#720

Closed
terrelln wants to merge 1 commit into
facebook:devfrom
terrelln:export-D103685305
Closed

Fix fuzzer input generation issues (#720)#720
terrelln wants to merge 1 commit into
facebook:devfrom
terrelln:export-D103685305

Conversation

@terrelln
Copy link
Copy Markdown
Contributor

@terrelln terrelln commented May 4, 2026

Summary:

Fuzzers were failing because we were consuming too much data after the end of the input. This was for two reasons:

  1. Many fuzzers use more than 1 byte of entropy for each byte of input data produced. So divide num_remaining_bytes() by 4.
  2. Some components, namely MuxLengths, was treating maxInputSize as a number of elements, rather than a number of bytes. Fix that.
  3. Claude also found two other components SentinelByte and CompressSmallLengths that had the same issue, so proactively fix it.

Differential Revision: D103685305

@meta-cla meta-cla Bot added the cla signed label May 4, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 4, 2026

@terrelln has exported this pull request. If you are a Meta employee, you can view the originating Diff in D103685305.

Summary:

Fuzzers were failing because we were consuming too much data after the end of the input. This was for two reasons:

1. Many fuzzers use more than 1 byte of entropy for each byte of input data produced. So divide `num_remaining_bytes()` by 4.
2. Some components, namely `MuxLengths`, was treating `maxInputSize` as a number of elements, rather than a number of bytes. Fix that.
3. Claude also found two other components `SentinelByte` and `CompressSmallLengths` that had the same issue, so proactively fix it.

Differential Revision: D103685305
@meta-codesync meta-codesync Bot changed the title Fix fuzzer input generation issues Fix fuzzer input generation issues (#720) May 4, 2026
@terrelln terrelln force-pushed the export-D103685305 branch from df9506a to bbf2191 Compare May 4, 2026 19:53
@meta-codesync meta-codesync Bot closed this in e87029e May 4, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 4, 2026

This pull request has been merged in e87029e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant