-
-
Notifications
You must be signed in to change notification settings - Fork 837
ICU-23239 Limit fuzzer test data size to 64K bytes #3735
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
base: main
Are you sure you want to change the base?
ICU-23239 Limit fuzzer test data size to 64K bytes #3735
Conversation
roubert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right to me, there must surely be some way to configure the fuzzer to never generate more data than what is wished for, so that all that's needed here is a simple assertion that the data isn't larger than that, instead of having the fuzzer generate too much data and then throwing away the excess.
|
sorry, I am not ready for review yet. click on the wrong bug |
ef68537 to
eba7115
Compare
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
OK, I've now marked this PR as draft for you, so that you can click Ready for review when it is. |
There is one: use option file *fuzzer.option file with max_len option I change the PR to use the option file and that should work in libfuzz but won't work with other fuzzer. |
This seems like a much better solution to me, but to be safe you might want to combine it with an assertion in the code that verifies that it really doesn't get more data than it should. |
much better? but the documentation said it won't work! I don't think it is a good idea to put the limit into two places . It is a known issue that other fuzzer will get more data and trigger the assertion. I do not think it is reasonable to add an assertion for a known issue which we know it will break. |
|
@roubert ping |
Avoid timeout on meaningless test