Closed pwmarcz closed 3 years ago
See recent issue #2478 (to be confirmed).
lseek used an int, I fixed it and added a test.
lseek
(We're planning to stop using off_t internally, but it's unrelated to the current bug).
off_t
There is a new regression test, large_file. Before the fix, it displayed:
large_file
testing length 0x7fffffff testing length 0x80000001 large_file: lseek(fd, -1, 2) = -2147483648 (ffffffff80000000): Success
And it looks like the length 0xffffffff actually causes lseek to return something resembling an error code, because I get:
0xffffffff
testing length 0xffffffff large_file: lseek(fd, -1, 2) = -1 (ffffffffffffffff): No such file or directory
(The test passes now).
This change is
See recent issue #2478 (to be confirmed).
Description of the changes
lseek
used an int, I fixed it and added a test.(We're planning to stop using
off_t
internally, but it's unrelated to the current bug).How to test this PR?
There is a new regression test,
large_file
. Before the fix, it displayed:And it looks like the length
0xffffffff
actually causeslseek
to return something resembling an error code, because I get:(The test passes now).
This change is