Skip to content

Commit 53f7ac8

Browse files
author
Sriya Pratipati
committed
changed return within loop to continue
1 parent 2c738fb commit 53f7ac8

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

libc/fuzzing/math/acos_fuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
2626
data += sizeof(double);
2727
// remove NaN and inf and values outside accepted range
2828
if (isnan(x) || isinf(x) || x > 1 || x < -1)
29-
return 0;
29+
continue;
3030

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_acos(input, input, MPFR_RNDN);

libc/fuzzing/math/asin_fuzz.cpp

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

2828
// remove NaN and inf and values outside accepted range
2929
if (isnan(x) || isinf(x) || x > 1 || x < -1)
30-
return 0;
30+
continue;
3131

3232
// signed zeros already tested in unit tests
3333
if (signbit(x) && x == 0.0)
34-
return 0;
34+
continue;
3535

3636
mpfr_set_d(input, x, MPFR_RNDN);
3737
int output = mpfr_asin(input, input, MPFR_RNDN);

libc/fuzzing/math/cos_fuzz.cpp

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

2828
// remove NaN and inf as preconditions
2929
if (isnan(x))
30-
return 0;
30+
continue;
3131
if (isinf(x))
32-
return 0;
32+
continue;
3333

3434
// signed zeros already tested in unit tests
3535
if (signbit(x) && x == 0.0)
36-
return 0;
36+
continue;
3737

3838
mpfr_set_d(input, x, MPFR_RNDN);
3939
int output = mpfr_cos(input, input, MPFR_RNDN);

libc/fuzzing/math/log10_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 and values outside accepted range
2929
if (isnan(x) || isinf(x) || x < 0)
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_log10(input, input, MPFR_RNDN);

libc/fuzzing/math/log1p_fuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
2626
data += sizeof(double);
2727
// remove NaN and inf and values outside accepted range
2828
if (isnan(x) || isinf(x) || x < -1)
29-
return 0;
29+
continue;
3030
// signed zeros already tested in unit tests
3131
if (signbit(x) && x == 0.0)
32-
return 0;
32+
continue;
3333

3434
mpfr_set_d(input, x, MPFR_RNDN);
3535
int output = mpfr_log1p(input, input, MPFR_RNDN);

libc/fuzzing/math/log2_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 and values outside accepted range
2929
if (isnan(x) || isinf(x) || x < 0)
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_log2(input, input, MPFR_RNDN);

libc/fuzzing/math/log_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 and values outside accepted range
2929
if (isnan(x) || isinf(x) || x < 0)
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
mpfr_set_d(input, x, MPFR_RNDN);
3535
int output = mpfr_log(input, input, MPFR_RNDN);
3636
mpfr_subnormalize(input, output, MPFR_RNDN);

libc/fuzzing/math/sin_fuzz.cpp

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

2828
// remove NaN and inf as preconditions
2929
if (isnan(x))
30-
return 0;
30+
continue;
3131
if (isinf(x))
32-
return 0;
32+
continue;
3333

3434
// signed zeros already tested in unit tests
3535
if (signbit(x) && x == 0.0)
36-
return 0;
36+
continue;
3737

3838
mpfr_set_d(input, x, MPFR_RNDN);
3939
int output = mpfr_sin(input, input, MPFR_RNDN);

libc/fuzzing/math/sincos_fuzz.cpp

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

3333
// remove NaN and inf as preconditions
3434
if (isnan(x) || isinf(x))
35-
return 0;
35+
continue;
3636

3737
// signed zeros already tested in unit tests
3838
if (signbit(x) && x == 0.0)
39-
return 0;
39+
continue;
4040

4141
mpfr_set_d(input, x, MPFR_RNDN);
4242
int output = mpfr_sin_cos(sin_x, cos_x, input, MPFR_RNDN);

libc/fuzzing/math/sqrt_fuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
2626
data += sizeof(double);
2727
// remove NaN and inf and values outside accepted range
2828
if (isnan(x) || isinf(x) || x < 0)
29-
return 0;
29+
continue;
3030
// signed zeros already tested in unit tests
3131
if (signbit(x) && x == 0.0)
32-
return 0;
32+
continue;
3333

3434
mpfr_set_d(input, x, MPFR_RNDN);
3535
int output = mpfr_sqrt(input, input, MPFR_RNDN);

0 commit comments

Comments
 (0)