Skip to content

Commit

Permalink
Merge pull request #67 from dloebl/fix-oss-fuzz-build
Browse files Browse the repository at this point in the history
Fix oss-fuzz build
  • Loading branch information
dloebl authored Mar 29, 2024
2 parents 4f2cd0f + 3ff758d commit 92d1957
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/noise256.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

static uint64_t seed;

// unsigned integer overflow expected
__attribute__((no_sanitize("integer")))
int psdrand(void) {
// simple pseudo random function from musl libc
seed = 6364136223846793005ULL * seed + 1;
Expand Down
2 changes: 2 additions & 0 deletions tests/noise6.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

static uint64_t seed;

// unsigned integer overflow expected
__attribute__((no_sanitize("integer")))
int psdrand(void) {
// simple pseudo random function from musl libc
seed = 6364136223846793005ULL * seed + 1;
Expand Down
2 changes: 2 additions & 0 deletions tests/noise6_interlaced.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

static uint64_t seed;

// unsigned integer overflow expected
__attribute__((no_sanitize("integer")))
int psdrand(void) {
// simple pseudo random function from musl libc
seed = 6364136223846793005ULL * seed + 1;
Expand Down

0 comments on commit 92d1957

Please sign in to comment.