Add some fuzzers to test other data structures. (#1870)

Start using a dictionary for fuzzing (see:
https://llvm.org/docs/LibFuzzer.html#dictionaries).
Remove some dead code.
Fuzzing with debug enabled is not usually a great idea (from performance
POV). Keep the code since it might be useful while debugging.
This commit is contained in:
Ivan Nardi
2023-01-25 11:44:59 +01:00
committed by GitHub
parent 29c5cc39fb
commit 9fc724de5a
184 changed files with 436 additions and 60 deletions
+10 -2
View File
@@ -23,15 +23,19 @@ SOFTWARE.
*
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __DESELMO_LIBCACHE_H__
#define __DESELMO_LIBCACHE_H__
#include <stdint.h>
typedef struct cache_entry *cache_entry;
typedef struct cache_entry_ *cache_entry;
typedef struct cache_entry_map *cache_entry_map;
typedef struct cache_entry_map_ *cache_entry_map;
/**
* @brief Codes representing the result of some functions
@@ -107,3 +111,7 @@ cache_entry cache_entry_new(void);
cache_entry_map cache_entry_map_new(void);
#endif
#ifdef __cplusplus
}
#endif