commit | 431166d99519f6794f10c48694913d2fe864b841 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Jan 27 16:28:31 2014 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Jan 27 16:36:56 2014 -0800 |
tree | 7c148908e51c210646a28f890da96897e6000138 | |
parent | 652dd5196df87bdeef7bff452f1a4857a96e3133 [diff] |
Fix 32-bit mmap/mmap64 handling of negative offsets. We don't actually need to worry about sign extension if we reject negative values ourselves. Previously it was possible to come up with negative but aligned values that we would pass to the kernel; in the case of mmap (as opposed to mmap64) we'd incorrectly turn those into large positive offsets. Change-Id: I2aa583e0f892d59bb77429aea8730b72db32dcb0