Summary: This diff introduces a `-lib-fuzz` flag to `buck link`, which links in a simple main that calls the LLVMFuzzerTestOneInput function, which is the entry point of libFuzzer fuzzer. Reviewed By: jberdine, jvillard Differential Revision: D15821512 fbshipit-source-id: cff731ed3master
parent
696731523d
commit
1614f78f6d
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size);
|
||||
|
||||
int _llair_main() {
|
||||
size_t Size = 13;
|
||||
uint8_t Data[Size];
|
||||
return LLVMFuzzerTestOneInput(Data, Size);
|
||||
}
|
Loading…
Reference in new issue