Fix ipv4_from_asc behavior on invalid Ip addresses
authorAmir Mohammadi <amiremohamadi@yahoo.com>
Wed, 4 Aug 2021 05:13:49 +0000 (09:43 +0430)
committerTomas Mraz <tomas@openssl.org>
Fri, 6 Aug 2021 10:31:24 +0000 (12:31 +0200)
commit8b9a13b43ba3d71e441fca47a52e800ce79b3d2b
treedac6e89acd72a1a2dce05c746ad7bdf39f4374b5
parent3f15358c7974573c12b94b01cb53d23e3c568310
Fix ipv4_from_asc behavior on invalid Ip addresses

sscanf() call in ipv4_from_asc does not check that
the string is terminated immediately after the last digit.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16201)
crypto/x509/v3_utl.c