raw download clone
views 159
size 1084 b

Trying to compile a fuzzer test fails in Xcode 10 beta 2. Moreover it's missing libclang_rt.fuzzer_osx.a library

Steps to Reproduce:

Try to compile the following sample

#include <string.h>
#include <stdint.h>

int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
    /* Whatever broken logic you want to execute on Data... */
    return Data && strlen((const char *)Data) == Size;

clang -o test test.c -fsanitize=undefined,address,fuzzer -g

ld: file not found: /Users/petu/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/lib/darwin/libclang_rt.fuzzer_osx.a
clang: error: linker command failed with exit code 1 (use -v to see invocation

Expected Results:

Fuzzing library is found and compilation succeeds. 

Actual Results:

Fuzzer library is not present. Compilation fails, fuzz testing is impossible with Xcode 10 beta 2.


Version 10.0 beta 2 (10L177m)


High Sierra 10.13.6 Beta (17G47b)
MacBook Pro (Retina, 15-inch, Late 2013)
close fullscreen
Login or Register to edit or fork this paste. It's free.