fix(data): reject partial and malformed map data

This commit is contained in:
2026-08-14 23:09:55 +09:00
parent 38475318db
commit bfe83d0119
10 changed files with 220 additions and 125 deletions

7
dat.h
View File

@@ -87,6 +87,13 @@ struct Trie
int cap;
};
enum
{
TrieMiss,
TriePrefix,
TrieExact,
};
typedef struct Hmap Hmap;
struct Hmap
{