summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mhash.h
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@yandex-team.ru>2023-12-14 17:48:28 +0100
committerDamjan Marion <dmarion@0xa5.net>2024-05-14 07:37:50 +0000
commit703289224c446c8e030e568754321733a7fb19d0 (patch)
tree93f33a7d6c63ae054a4621693fa35e8c84586a84 /src/vppinfra/mhash.h
parent2f5d094ddd82c2ae429b38b3963456e0ef9c8225 (diff)
vppinfra: fix mhash oob after unset and add tests
Fix out of buffer access after mhash_unset Add format mhash pair functions Add related mhash tests, similar to hash ones Type: fix Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru> Change-Id: Idbefd7d32c4cd16b55d84ad4006c38251b4e2c33
Diffstat (limited to 'src/vppinfra/mhash.h')
-rw-r--r--src/vppinfra/mhash.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vppinfra/mhash.h b/src/vppinfra/mhash.h
index 7eb1918384e..62aee365fa3 100644
--- a/src/vppinfra/mhash.h
+++ b/src/vppinfra/mhash.h
@@ -166,8 +166,13 @@ do { \
})); \
} while (0)
+u8 *format_mhash (u8 *s, va_list *va);
+
format_function_t format_mhash_key;
+/* Main test routine. */
+int test_mhash_main (unformat_input_t *input);
+
#endif /* included_clib_mhash_h */
/*