Github user astitcher commented on a diff in the pull request:
https://github.com/apache/qpid-proton/pull/95#discussion_r102986492
--- Diff: proton-c/src/tests/fuzz/fuzz-sniff-header.c ---
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <stdio.h>
+
+#include "core/autodetect.h"
+
+#ifdef __cplusplus
--- End diff --
The declaration only has to be extern "C" so you could put:
#ifdef __cplusplus
extern "C"
#endif
int LLVMFuzzerTestOneInput(uint8_t *data, size_t size);
In a header file. That is sufficient to give the function the correct
linkage. In fact I'm surprised there isn't already a declaration like this in
libfuzzer.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]