summaryrefslogtreecommitdiff
path: root/NetworkPkg/Ip6Dxe/GoogleTest/Ip6DxeGoogleTest.cpp
diff options
context:
space:
mode:
authorDoug Flick <dougflick@microsoft.com>2024-01-26 05:54:49 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-02-06 19:24:26 +0000
commit6f77463d72807ec7f4ed6518c3dac29a1040df9f (patch)
treeadcd5baaeeddeebbaebe361b071d44df99c67f29 /NetworkPkg/Ip6Dxe/GoogleTest/Ip6DxeGoogleTest.cpp
parentbbfee34f4188ac00371abe1389ae9c9fb989a0cd (diff)
downloadedk2-6f77463d72807ec7f4ed6518c3dac29a1040df9f.zip
edk2-6f77463d72807ec7f4ed6518c3dac29a1040df9f.tar.gz
edk2-6f77463d72807ec7f4ed6518c3dac29a1040df9f.tar.bz2
NetworkPkg: Ip6Dxe: SECURITY PATCH CVE-2023-45231 Unit Tests
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4536 Validates that the patch for... Out-of-bounds read when handling a ND Redirect message with truncated options .. has been fixed Tests the following function to ensure that an out of bounds read does not occur Ip6OptionValidation Cc: Saloni Kasbekar <saloni.kasbekar@intel.com> Cc: Zachary Clark-williams <zachary.clark-williams@intel.com> Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com> Reviewed-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
Diffstat (limited to 'NetworkPkg/Ip6Dxe/GoogleTest/Ip6DxeGoogleTest.cpp')
-rw-r--r--NetworkPkg/Ip6Dxe/GoogleTest/Ip6DxeGoogleTest.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/NetworkPkg/Ip6Dxe/GoogleTest/Ip6DxeGoogleTest.cpp b/NetworkPkg/Ip6Dxe/GoogleTest/Ip6DxeGoogleTest.cpp
new file mode 100644
index 0000000..6ebfd5f
--- /dev/null
+++ b/NetworkPkg/Ip6Dxe/GoogleTest/Ip6DxeGoogleTest.cpp
@@ -0,0 +1,20 @@
+/** @file
+ Acts as the main entry point for the tests for the Ip6Dxe module.
+
+ Copyright (c) Microsoft Corporation
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+**/
+#include <gtest/gtest.h>
+
+////////////////////////////////////////////////////////////////////////////////
+// Run the tests
+////////////////////////////////////////////////////////////////////////////////
+int
+main (
+ int argc,
+ char *argv[]
+ )
+{
+ testing::InitGoogleTest (&argc, argv);
+ return RUN_ALL_TESTS ();
+}