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:
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user