commit | 12f0744f340746b3a1c1accfdf993d6548f33e56 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue May 23 17:35:49 2017 -0700 |
committer | Rob Landley <rob@landley.net> | Wed May 24 19:56:58 2017 -0500 |
tree | 7fa4ac6625bcaff12c300f4ef54d53649cfe7628 | |
parent | 5a159cceb35fe08e444bd5a1771f8059888b03ff [diff] |
Add and use xmmap. Everyone forgets that mmap returns MAP_FAILED rather than NULL on failure. Every use of mmap in toybox was either doing the wrong check, or no check at all (including the two I personally added).