Skip to content

Commit

Permalink
add unsigned types for chrono fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed May 29, 2019
1 parent 2753d7d commit 0ae68b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions fuzzing/chrono_duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,30 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, std::size_t Size) {
case 1:
doit<char>(Data, Size);
break;
case 21:
doit<unsigned char>(Data, Size);
break;
case 31:
doit<signed char>(Data, Size);
break;
case 2:
doit<short>(Data, Size);
break;
case 22:
doit<unsigned short>(Data, Size);
break;
case 3:
doit<int>(Data, Size);
break;
case 23:
doit<unsigned int>(Data, Size);
break;
case 4:
doit<long>(Data, Size);
break;
case 24:
doit<unsigned long>(Data, Size);
break;
case 5:
doit<float>(Data, Size);
break;
Expand Down

0 comments on commit 0ae68b0

Please sign in to comment.