OSDN Git Service

Avoid sign extension of the mmap offset.
authorElliott Hughes <enh@google.com>
Thu, 25 Jul 2013 17:15:07 +0000 (10:15 -0700)
committerElliott Hughes <enh@google.com>
Thu, 25 Jul 2013 17:15:07 +0000 (10:15 -0700)
commite320a8c7802eb54f80693db03bb2a201580875e7
tree2b803053b2b802f4ad01869d0f479a3bae89f6a2
parentbfba6aac99115972fad3341aef595c0ca1f7258b
Avoid sign extension of the mmap offset.

off_t is signed to support seeking backwards, but that's a liability
when using off_t to represent a subset of a file.

Change-Id: I2a3615166eb16212347eb47f1242e3bfb93c2022
libc/bionic/mmap.cpp