> `hostTail - 1` will point before `hostStart` if `hostLen == domainLen`
Sorry, `hostTail - 1` will will never be evaluated when `hostLen == domainLen` due to short-circuit evaluation. But the latter is still UB.
Bug 1563886 Comment 8 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
> `hostTail - 1` will point before `hostStart` if `hostLen == domainLen`
Sorry, `hostTail - 1` will never be evaluated when `hostLen == domainLen` due to short-circuit evaluation. But the latter is still UB.