[libc-commits] [libc] [libc] add hashtable fuzzing (PR #87949)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Mon Apr 29 13:30:13 PDT 2024
================
@@ -0,0 +1,159 @@
+#include "src/__support/CPP/new.h"
+#include "src/__support/CPP/optional.h"
+#include "src/__support/HashTable/table.h"
+#include "src/string/memcpy.h"
+#include <search.h>
+#include <stdint.h>
+namespace LIBC_NAMESPACE {
+
+enum class Action { Find, Insert, CrossCheck };
+static uint8_t *global_buffer = nullptr;
----------------
SchrodingerZhu wrote:
It is a bit different here as the lifetime of key and values should be the lifetime of the hashtable. I will look into a better way.
https://github.com/llvm/llvm-project/pull/87949
More information about the libc-commits
mailing list