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#4631pks-t merged 1 commit intolibgit2:masterfrom andreasbaumann:struct_stat_file_offset_bits
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)