-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
printf does not have limits for the maximum value of its arguments #1879
Comments
Note that your example is using the Bash built-in
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hasn't been fixed yet |
Hi @tertsdiepraam if possible I want to give this a try. But what is the maximum acceptable range of a valid output? |
@howjmay I've tried some values and the maximum allowed value in GNU seems to be 2^31 - 1 = 2147483647. So basically whatever fits in a |
Thank you! |
Fixed in #6511 |
The GNU
printf
command limits the value of arguments it will accept, for exampleThe version of printf in this repo does not apply this limit so it will produce 2 billion 0s. This is causing the gnu tests to fail when attempting to generate the final log as it has to process a log from a test that is ~2GB in size.
If this isn't considered a bug then the gnu tests should be patched to remove the problematic check.
The text was updated successfully, but these errors were encountered: