gecko-dev/ipc/chromium
Jed Davis bc66e27e8c Bug 1536697 - Fix error handling in base::SharedMemory::Map. r=froydnj
If mmap failed, we'd leave the memory_ member variable set to MAP_FAILED,
but everything else in this file checks for nullptr (and only nullptr) to
test if the pointer is valid.

Also, this removes the debug assertion that the mmap succeeded, to allow
writing unit tests where we expect it to fail (e.g., for insufficient
permissions).

Depends on D26747

Differential Revision: https://phabricator.services.mozilla.com/D26748

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:51 +00:00
..
src Bug 1536697 - Fix error handling in base::SharedMemory::Map. r=froydnj 2019-08-14 22:48:51 +00:00
chromium-config.mozbuild Bug 1499041 - Remove libFuzzer flags from ipc/chromium/. r=froydnj 2019-07-24 14:13:30 +00:00
moz.build Bug 1426526 - Delete file_util from ex-Chromium IPC source. r=froydnj 2019-08-14 22:48:42 +00:00