[adal]: Fix error handling (#8638)

Fix for issue
51964 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51964)
This commit is contained in:
Arthur Chan 2022-09-30 13:28:09 +01:00 committed by GitHub
parent 5bf3ccce77
commit 582d598054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,8 @@ def TestInput(data):
copy_url(fdp.ConsumeString(100))
copy_url(DummyClass())
except ValueError as e:
if "contains invalid characters" not in str(e):
if (("contains invalid characters" not in str(e)) and
("Invalid IPv6 URL" not in str(e))):
raise e
try:
@ -67,3 +68,4 @@ def main():
if __name__ == "__main__":
main()