commit | b80ef359b047a6bb72947b582102a979568f5c30 | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Mon Jan 24 08:07:34 2022 +0000 |
committer | David Drysdale <drysdale@google.com> | Wed Mar 09 09:56:11 2022 +0000 |
tree | ac7ff717c332a37d312370e16d1a6a6903e5ab3c | |
parent | 00c493e49cce34dcb757f2eed28d736b2b45cb86 [diff] |
Use new (std::nothrow) throughout If code uses "normal" `new`, the compiler is allowed to assume that `nullptr` is never returned, even if built with -fno-exceptions. Use `new (std::nothrow)` throughout so that `nullptr` gets returned and can (in some cases) be handled. Bug: 215451239 Test: VtsAidlKeyMintTargetTest Change-Id: Ied97ce946c0fbfbd5449c533e7ce1acbd0f595c5