Skip to content

Commit

Permalink
Fix wrong fopen mode in fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
PJK committed Oct 11, 2024
1 parent a0582ab commit 72ea208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oss-fuzz/cbor_load_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void *limited_realloc(void *ptr, size_t size) {
struct State {
FILE* fout;

State() : fout(fopen("/dev/null", "r")) {
State() : fout(fopen("/dev/null", "w")) {
cbor_set_allocs(limited_malloc, limited_realloc, limited_free);
}
};
Expand Down

0 comments on commit 72ea208

Please sign in to comment.