[scudo][Fuchsia] Don't assume MapPlatformData::Vmar is valid
authorAlex Brachet <abrachet@google.com>
Mon, 11 Jul 2022 17:39:44 +0000 (17:39 +0000)
committerAlex Brachet <abrachet@google.com>
Mon, 11 Jul 2022 17:39:44 +0000 (17:39 +0000)
commitc823cbf699e9324dc1448a46b11941fb3030f97d
treefb342da6caf119f4f40d38f8f084e4beb4579ccc
parentd0751c9725aab1dad3d86481e13a4628356e7422
[scudo][Fuchsia] Don't assume MapPlatformData::Vmar is valid

After https://reviews.llvm.org/D129237, the assumption
that any non-null data contains a valid vmar handle is no
longer true. Generally this code here needs cleanup, but
in the meantime this fixes errors on Fuchsia.

Differential Revision: https://reviews.llvm.org/D129331
compiler-rt/lib/scudo/standalone/fuchsia.cpp