Browse Source

fix number_type error

pull/3786/head
pacbypass 12 months ago
parent
commit
ec9ae61873
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      cpp/test/phonenumbers/fuzz_util.cc

+ 1
- 2
cpp/test/phonenumbers/fuzz_util.cc View File

@ -128,12 +128,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
phone_util->GetCountryCodeForRegion(region);
phone_util->IsPossibleNumberForString(number, region);
phone_util->IsNumberGeographical(phone_number);
phone_util->IsNumberGeographical(number_type, country_calling_code);
i18n::phonenumbers::PhoneNumberUtil::PhoneNumberType number_type =
ConsumePhoneNumberType(fuzzed_data);
phone_util->IsNumberGeographical(number_type, country_calling_code);
phone_util->IsPossibleNumberForType(phone_number, number_type);
i18n::phonenumbers::PhoneNumber example_number;
phone_util->GetExampleNumberForType(region, number_type, &example_number);


Loading…
Cancel
Save