aboutsummaryrefslogtreecommitdiffstats
path: root/lib/src/test
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2022-10-17 16:52:25 +0200
committerJordan Augé <jordan.auge+fdio@cisco.com>2022-10-17 16:52:25 +0200
commita6ed4809a456360bc37545f79fe7b48b388078c8 (patch)
tree45d63d0aa8cbfaa8068ac6126706d823b8548a06 /lib/src/test
parent1831c27adeb851b7b28e57342f4893a1d3b7dce2 (diff)
fix(libhicn): Out of bound memory access
Change-Id: If7ef58bc05dd62f58bf5d5a8bce0491afab37d42 Ticket: HICN-813 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'lib/src/test')
-rw-r--r--lib/src/test/test_khash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/test/test_khash.cc b/lib/src/test/test_khash.cc
index 70b2f2258..da6b62071 100644
--- a/lib/src/test/test_khash.cc
+++ b/lib/src/test/test_khash.cc
@@ -158,11 +158,11 @@ TEST_F (KHashTest, Collisions)
Key key2 = { .x = 11 };
k = kh_put_test_map (map, &key1, &ret);
- EXPECT_EQ (ret, 1);
+ ASSERT_EQ (ret, 1);
kh_val (map, k) = 15u;
k = kh_put_test_map (map, &key2, &ret);
- EXPECT_EQ (ret, 1);
+ ASSERT_EQ (ret, 1);
kh_val (map, k) = 27u;
k = kh_get_test_map (map, &key1);