diff options
author | Ryan Prichard <rprichard@google.com> | 2017-11-07 15:30:32 -0800 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2017-11-07 15:34:23 -0800 |
commit | bf54986d19a9111554a6d5bfb4214080413e18ab (patch) | |
tree | 4934981addd856f9e3ce95d311c3b8080dcca9c2 /libc/stdio/stdio.cpp | |
parent | 8697f10e747eada34fa91d838c1ce95b687068f5 (diff) |
Allow 32-bit fseeko/fseeko64 SEEK_CUR/SEEK_SET to exceed 2 GiB
Bug: http://b/68837650
Test: /data/nativetest/bionic-unit-tests/bionic-unit-tests
Test: /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static
Test: /data/nativetest64/bionic-unit-tests/bionic-unit-tests
Change-Id: I367e0238c31d35f76d8ad89fd0aa27ecfeb7c149
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r-- | libc/stdio/stdio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index 46d717a71..b4b2a3685 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -581,7 +581,7 @@ __strong_alias(fseek, fseeko); int fseeko64(FILE* fp, off64_t offset, int whence) { CHECK_FP(fp); - return __fseeko64(fp, offset, whence, 8*sizeof(off_t)); + return __fseeko64(fp, offset, whence, 8*sizeof(off64_t)); } int fsetpos(FILE* fp, const fpos_t* pos) { |