Added fuzzer for oss-fuzz integration.

pull/314/head
davkor 5 years ago
parent e8f93de238
commit 9ef082d8be
No known key found for this signature in database
GPG Key ID: 0069CD4C5974232E

@ -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…
Cancel
Save