summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/fstatfs.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2012-05-17 12:42:54 +0100
committerMike Frysinger <vapier@gentoo.org>2012-05-21 22:20:04 -0400
commita8908c3517cc93249bb6ec2c693cf80874c7f629 (patch)
treef0267eed14eee1859deba63980bda7aaea6c774b /libc/sysdeps/linux/common/fstatfs.c
parent8cfb43de636faa401634340d1a18404844f9ba5a (diff)
mmap()->sys_mmap2: do unsigned shift of offset
Fix the implementation of mmap based on the mmap2 system call, to construct pgoffset from offset with an unsigned shift rather than a signed (off_t) shift. The mmap2 test in the testsuite catches this case by mmap'ing with a large offset (with the sign bit set). The signed shift repeats the sign bit making the page shift way out of range. This is already fixed similarly in mmap64(). Signed-off-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps/linux/common/fstatfs.c')
0 files changed, 0 insertions, 0 deletions