Skip to content

Commit

Permalink
SUKU sync
Browse files Browse the repository at this point in the history
  • Loading branch information
SukuWc committed Oct 22, 2023
1 parent 725f3c9 commit 254cfd4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@
"singleInstance": true,
"command": "git clean -dxf",
},
{
"name": "Fuzzer Docker",
"color": "white",
"singleInstance": true,
"command": "podman run --privileged -it -v $PWD:/project -w /project mozillasecurity/libfuzzer bash",
// make nightly
},
{
"name": "D51 Docker",
"color": "white",
Expand Down
6 changes: 3 additions & 3 deletions grid_common/test_harness.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
if (Size % 1000 == 0) {
// Fail the input.
printf("Size error\r\n");
return 1;
return -1;
}

// Initialize the random number generator.
Expand All @@ -20,14 +20,14 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
if (rand() % 2 == 0) {
// Fail the input.
printf("Random error\r\n");
return 1;
return -1;
}

// Pass the input.

if (Data[0] == 0){
printf("Data error\r\n");
return 1;
return -1;
}

// Pass the input.
Expand Down
2 changes: 1 addition & 1 deletion grid_pico/pico-sdk
Submodule pico-sdk updated 247 files

0 comments on commit 254cfd4

Please sign in to comment.