Added fuzzer for oss-fuzz integration.
parent
dc22dc76ec
commit
91f3ed7989
@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "iec61850_server.h"
|
||||
#include "hal_thread.h"
|
||||
|
||||
int LLVMFuzzerTestOneInput(const char *data, size_t size) {
|
||||
int out;
|
||||
MmsValue* value = NULL;
|
||||
value = MmsValue_decodeMmsData(data, 0, size, &out);
|
||||
if (value != NULL) {
|
||||
free(value);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue