Line-wrapping did nasty things to the 255-character filename in the original
bug description. Here is a Makefile and test.c that demonstrates the issue.
What's really odd is that the 4 byte difference appears to be strictly padding?
All the offsets and sizes are the same between 64bit and 32bit:
Created attachment 4636
Makefile
Line-wrapping did nasty things to the 255-character filename in the original
bug description. Here is a Makefile and test.c that demonstrates the issue.
What's really odd is that the 4 byte difference appears to be strictly padding?
All the offsets and sizes are the same between 64bit and 32bit:
./test-native bug-dir dirent. d_ino@0) : 8 dirent. d_off@8) : 8 dirent. d_reclen@ 16): 2 dirent. d_type@ 18): 1 dirent. d_name@ 19): 256 dirent. d_ino@0) : 8 dirent. d_off@8) : 8 dirent. d_reclen@ 16): 2 dirent. d_type@ 18): 1 dirent. d_name@ 19): 256
sizeof(struct dirent): 280
sizeof(
sizeof(
sizeof(
sizeof(
sizeof(
./test-m32 bug-dir
sizeof(struct dirent): 276
sizeof(
sizeof(
sizeof(
sizeof(
sizeof(
*** stack smashing detected ***: ./test-m32 terminated