summaryrefslogtreecommitdiff
path: root/tests/key_blob_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/key_blob_test.cpp')
-rw-r--r--tests/key_blob_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/key_blob_test.cpp b/tests/key_blob_test.cpp
index f50d4fe..f69551b 100644
--- a/tests/key_blob_test.cpp
+++ b/tests/key_blob_test.cpp
@@ -228,7 +228,7 @@ TEST_P(KeyBlobTest, WrongHwEnforced) {
// Find enforced serialization data and modify it.
size_t hw_enforced_size = hw_enforced_.SerializedSize();
- UniquePtr<uint8_t[]> hw_enforced_data(new uint8_t[hw_enforced_size]);
+ UniquePtr<uint8_t[]> hw_enforced_data(new (std::nothrow) uint8_t[hw_enforced_size]);
hw_enforced_.Serialize(hw_enforced_data.get(), hw_enforced_data.get() + hw_enforced_size);
auto hw_enforced_ptr =