Moderate Activity

Commits : Individual Commit

  Analyzed 3 days ago based on code collected 3 days ago.

Commit ID a8908c3517cc93249bb6ec2c693cf80874c7f629

Anon80 Contributor: James Hogan Files Modified: 1
Date: 17-May-2012 at 11:42 Lines Added: 2
Repository: git://git.busybox.net/uClibc master Lines Removed: 1
Commit Comment: 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....@imgtec.com>
Signed-off-by: Mike Frysinger <vap...@gentoo.org>
 

Changes by Language

Language Code Added Code Removed Comments Added Comment Removed Blanks Added Blanks Removed
  C 2 1 0 0 0 0

Changes by File

Showing page 1 of 1
File Language Code Added Code Removed Comments Added Comment Removed Blanks Added Blanks Removed
libc/sysdeps/linux/common/mmap.c C 2 1 0 0 0 0
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.