Skip to content

Commit f69d8ab

Browse files
author
Sriya Pratipati
committed
changed return inside for loop to continue
1 parent 662bb72 commit f69d8ab

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

libc/fuzzing/math/exp10_fuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
2727

2828
// remove NaN and inf
2929
if (isnan(x) || isinf(x))
30-
return 0;
30+
continue;
3131
// signed zeros already tested in unit tests
3232
if (signbit(x) && x == 0.0)
33-
return 0;
33+
continue;
3434

3535
mpfr_set_d(input, x, MPFR_RNDN);
3636
int output = mpfr_exp10(input, input, MPFR_RNDN);

libc/fuzzing/math/exp2_fuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
2727

2828
// remove NaN and inf
2929
if (isnan(x) || isinf(x))
30-
return 0;
30+
continue;
3131
// signed zeros already tested in unit tests
3232
if (signbit(x) && x == 0.0)
33-
return 0;
33+
continue;
3434

3535
mpfr_set_d(input, x, MPFR_RNDN);
3636
int output = mpfr_exp2(input, input, MPFR_RNDN);

libc/fuzzing/math/exp_fuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
2727

2828
// remove NaN and inf
2929
if (isnan(x) || isinf(x))
30-
return 0;
30+
continue;
3131
// signed zeros already tested in unit tests
3232
if (signbit(x) && x == 0.0)
33-
return 0;
33+
continue;
3434

3535
mpfr_set_d(input, x, MPFR_RNDN);
3636
int output = mpfr_exp(input, input, MPFR_RNDN);

libc/fuzzing/math/expm1_fuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
2727

2828
// remove NaN and inf
2929
if (isnan(x) || isinf(x))
30-
return 0;
30+
continue;
3131
// signed zeros already tested in unit tests
3232
if (signbit(x) && x == 0.0)
33-
return 0;
33+
continue;
3434

3535
mpfr_set_d(input, x, MPFR_RNDN);
3636
int output = mpfr_expm1(input, input, MPFR_RNDN);

0 commit comments

Comments
 (0)