fstat
not return right file-size when compile it with -m32
#6203
Labels
fstat
not return right file-size when compile it with -m32
#6203
Environment
Steps to reproduce
prepare tools:
source code:
compile it with
gcc -o test test.c
, and run./test test.c
, getfile: test.c, size: 418
, it's right;compile it with
gcc -m32 -o test test.c
, and run./test test.c
, getfile: test.c, size: -135036928
, it's not right!Expected behavior
the result with
-m32
flag should also right.Actual behavior
fstat
not return right file-size when compile it with-m32
.The text was updated successfully, but these errors were encountered: