This is the core of inet_pton in glibc and musl, called by essentially every network client on Linux. Address-parsing bugs are not hypothetical: CVE-2021-28831 class issues in parsers and the infamous octal-interpretation confusion in netmask libraries both come from mishandling exactly this input format.