commit | 6488068929ee53119a2ed3ca3baa4c6c9e70ed5e | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Mon Jan 24 08:23:12 2022 +0000 |
committer | David Drysdale <drysdale@google.com> | Wed Jun 01 15:12:00 2022 +0000 |
tree | dfa0c1a65878e897f9fc05d92d16b886c2648e4c | |
parent | 7d500dafe15bb3ac948c8e26fda4df0486f85238 [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: If7206b738f0fa0427866d022359aa16257889a9e