From a6ed4809a456360bc37545f79fe7b48b388078c8 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Mon, 17 Oct 2022 16:52:25 +0200 Subject: fix(libhicn): Out of bound memory access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If7ef58bc05dd62f58bf5d5a8bce0491afab37d42 Ticket: HICN-813 Signed-off-by: Jordan Augé --- lib/src/test/test_khash.cc | 4 ++-- 1 file 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); -- cgit 1.2.3-korg