-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fixed stack smashing due to wrong size of struct stat on the stack #4631
fixed stack smashing due to wrong size of struct stat on the stack #4631
Conversation
on 32-bit systems with 64-bit file descriptor offsets enabled (added -D_FILE_OFFSET_BITS=64 when compiling the test suite)
This happens only on 32-bit Intel systems with stack smash protection enabled. |
As one test case shows:
|
What happens? Where? Can you explain a little bit more about the problem that you're solving here? Are we assuming that we have 64 bit types in |
Thanks for the stacktrace. That's helpful. This is unexpected... I would have thought that |
Sorry, I should maybe have reported it as a bug and not as a pull-request. :-) As I understand it, the size of struct stat depends on the value of DFILE_OFFSET_BITS. |
Aha! Thanks, that's the missing link for me. Yeah, when we split up the |
Thanks for your fix! |
on 32-bit systems with 64-bit file descriptor offsets enabled
(added -D_FILE_OFFSET_BITS=64 when compiling the test suite)