-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated target antipattern: misuse of ConsumeData
#575
Comments
ConsumeData
Could we document this somewhere (e.g., a file in the repo/bucket)? |
We can probably base this on
|
It might also be worth considering have a separate "validator" agent that focuses on finding these documented bad patterns and fixing them. |
An important point here is that the triage correctly labels this a "Bug" (bug here means bug in OFG generated harness, and specifically means no bug in the target code), so our existing agent already get's it correct in that sense. We could try and get the oss-fuzz-gen/experiment/evaluator.py Lines 386 to 425 in 43bf4db
A caveat here is I'm not sure how often the triaging get's it wrong, which we should watch out for if adding it into the loop. |
Ref: #575 Ref: #301 --------- Signed-off-by: David Korczynski <[email protected]>
From https://llm-exp.oss-fuzz.com/Result-reports/scheduled/2024-08-31-weekly-all/sample/output-libtheora-th_comment_query/02.html
is wrong, because
ConsumeData
doesn't guarantee it'll writetc.comment_lengths[i]
bytes of data, leading to potential false positive OOB reads afterwards.This should instead be:
Is there some instruction we can give to prevent this misuse of FDP ? @DavidKorczynski @DonggeLiu
The text was updated successfully, but these errors were encountered: