Submitted by zzzitron
BytesUtils.sol#L44-L51
Compare will return false answer without reverting when the inputs are not valid.
The compare function is used for compareNames. The names are supposed to be DNS wire format. If the strings are malformed, it is possible to give out-of-range offset, len, otheroffset, and otherlen. When it happens, the compare will return some false values, without reverting, since the validity of offset and len are not checked.
Check whether the offset, len are within the length of self, as well as for the other.
makoto (ENS) acknowledged and commented:
Arachnid (ENS) confirmed and commented:
