Skip to content

Commit

Permalink
simplify jq_fuzz_execute.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKorczynski authored Dec 3, 2023
1 parent 4e2126f commit 59e07d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/jq_fuzz_execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
jq_state *jq = NULL;
jq = jq_init();
if (jq != NULL) {
char *origin = strdup("/tmp/");
jq_set_attr(jq, jv_string("JQ_ORIGIN"), jv_string(origin));
free(origin);
jq_set_attr(jq, jv_string("JQ_ORIGIN"), jv_string("/tmp/"));

if (jq_compile(jq, prog_payload.c_str())) {
// Process to jv_parse and then jv_next
Expand Down

0 comments on commit 59e07d5

Please sign in to comment.