Skip to content

Commit

Permalink
Fix C scope for random_string
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Sep 21, 2023
1 parent 5dd5106 commit ab892c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions regress/fuzzers/zip_read_file_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include <string>
#include <zip.h>

std::string random_string(size_t length);

#ifdef __cplusplus
extern "C" {
#if 0
Expand All @@ -13,6 +11,8 @@ extern "C" {
#endif
#endif

std::string random_string(size_t length);

/**
This fuzzing target takes input data, creates a ZIP archive from it, checks the archive's consistency,
and iterates over the entries in the archive, reading data from each entry.
Expand Down
4 changes: 2 additions & 2 deletions regress/fuzzers/zip_write_encrypt_aes256_file_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include <string>
#include <zip.h>

std::string random_string(size_t length);

#ifdef __cplusplus
extern "C" {
#if 0
Expand All @@ -13,6 +11,8 @@ extern "C" {
#endif
#endif

std::string random_string(size_t length);

/**
This fuzzing target takes input data, creates a ZIP archive, load
it to a buffer, adds a file to it with AES-256 encryption and a
Expand Down
4 changes: 2 additions & 2 deletions regress/fuzzers/zip_write_encrypt_pkware_file_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include <string>
#include <zip.h>

std::string random_string(size_t length);

#ifdef __cplusplus
extern "C" {
#if 0
Expand All @@ -13,6 +11,8 @@ extern "C" {
#endif
#endif

std::string random_string(size_t length);

/**
This fuzzing target takes input data, creates a ZIP archive, load
it to a buffer, adds a file to it with traditional PKWARE
Expand Down

0 comments on commit ab892c1

Please sign in to comment.