code format

This commit is contained in:
vanhauser-thc 2025-05-18 14:07:03 +02:00
parent 816334000a
commit 06afa48e02

View File

@ -65,9 +65,12 @@ extern "C" {
#endif #endif
#if defined(__APPLE__) && defined(__MACH__) #if defined(__APPLE__) && defined(__MACH__)
#define SECTION_RODATA __attribute__((used, retain)) __attribute__((section ("__RODATA,__rodata"))) #define SECTION_RODATA \
__attribute__((used, retain)) __attribute__((section("__RODATA,__" \
"rodata")))
#else #else
#define SECTION_RODATA __attribute__((used, retain)) __attribute__((section (".rodata"))) #define SECTION_RODATA \
__attribute__((used, retain)) __attribute__((section(".rodata")))
#endif #endif
// AFL++ shared memory fuzz cases // AFL++ shared memory fuzz cases
@ -112,8 +115,7 @@ __attribute__((weak)) void __asan_unpoison_memory_region(
__attribute__((weak)) void *__asan_region_is_poisoned(void *beg, size_t size); __attribute__((weak)) void *__asan_region_is_poisoned(void *beg, size_t size);
// Notify AFL about persistent mode. // Notify AFL about persistent mode.
SECTION_RODATA static const char AFL_PERSISTENT[] = SECTION_RODATA static const char AFL_PERSISTENT[] = "##SIG_AFL_PERSISTENT##";
"##SIG_AFL_PERSISTENT##";
int __afl_persistent_loop(unsigned int); int __afl_persistent_loop(unsigned int);
// Notify AFL about deferred forkserver. // Notify AFL about deferred forkserver.