May be UB causes something impossible? https://searchfox.org/mozilla-central/rev/f372470e10c8cb0691681603a1d6324dee5b3b8a/netwerk/dns/nsDNSService2.cpp#1175,1182 `hostTail - 1` will point before `hostStart` if `hostLen == domainLen` and `domain` will point after `domainEnd` if it is the last element of the `mIPv4OnlyDomains` list. Both are UB.
Bug 1563886 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
May be UB causes something impossible? https://searchfox.org/mozilla-central/rev/f372470e10c8cb0691681603a1d6324dee5b3b8a/netwerk/dns/nsDNSService2.cpp#1175,1182 ~~`hostTail - 1` will point before `hostStart` if `hostLen == domainLen` and~~ `domain` will point after `domainEnd` if it is the last element of the `mIPv4OnlyDomains` list. ~~Both are UB.~~