From af975d63f67e6cc2d17f1804acb66328905f8701 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Mon, 21 Apr 2025 20:43:51 -0500 Subject: better version support, fixes, and memory saftey --- src/hash/pearson.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/hash/pearson.c') diff --git a/src/hash/pearson.c b/src/hash/pearson.c index 21c0c96..a544515 100644 --- a/src/hash/pearson.c +++ b/src/hash/pearson.c @@ -23,6 +23,10 @@ struct pearson_hash pearson_init(){ return (struct pearson_hash){.ret = 0}; } +int pearson_free_l(lua_State* L){ + return 0; +} + void pearson_update(uint8_t* aa, size_t len, struct pearson_hash* hash){ for(int i = 0; i != len; i++) hash->ret = pearson_table[(uint8_t)(hash->ret^aa[i])]; -- cgit v1.2.3