-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
dd,df: fix out-of-bounds panic in suffix selection loop #10842
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?
Conversation
|
GNU testsuite comparison: |
|
please add test to make sure we don't regress in the future |
|
i was more thinking about the error that you could trigger from df or dd directly ? |
|
GNU testsuite comparison: |
The bounds check was evaluated after the array access due to short-circuit evaluation order, and used the wrong upper bound, allowing the index to exceed the suffixes array length.
7c8e7db to
de3186f
Compare
|
GNU testsuite comparison: |
Merging this PR will improve performance by 3.87%
Performance Changes
Comparing Footnotes
|
|
If my understanding is correct, this would only trigger when a file was 999 Yottabytes, so I don't think we will be able to make a regression test for this one 😄 |
|
GNU testsuite comparison: |
The bounds check was evaluated after the array access due to short-circuit evaluation order, and used the wrong upper bound, allowing the index to exceed the suffixes array length.