gecko-dev/ipc/chromium
Jed Davis 1388eadfff 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-06-20 22:40:44 +00:00
..
src Bug 1536697 - Fix error handling in base::SharedMemory::Map. r=froydnj 2019-06-20 22:40:44 +00:00
chromium-config.mozbuild Bug 1512504 - Remove support for MSVC. r=froydnj 2019-02-14 21:45:27 +00:00
moz.build Bug 1426526 - Delete file_util from ex-Chromium IPC source. r=froydnj 2019-06-20 22:40:40 +00:00