Fix conditional __AFL_LOOP definition

__AFL_LOOP function definition conflicts with macro definition.

Conditionally add __AFL_LOOP function definition only when macro
is not defined.

Resolves #7230
This commit is contained in:
Nym Seddon 2020-12-30 23:21:28 +00:00
parent a1eca8ca7e
commit cf51fc1306
No known key found for this signature in database
GPG key ID: 7D66342761863FFE

View file

@ -35,7 +35,7 @@
#ifndef OSSFUZZ
#if (!defined(__clang__) || (__clang__ < 5))
#ifndef __AFL_LOOP
static int __AFL_LOOP(int)
{
static int once = 0;