Closed hunts closed 1 month ago
I see Label
has a compose_len()
function, but it is trying to return a u16
, meanwhile there are label.len() + 1
in several places in the codebase. It may worth a new issue to update all of these, but I'm going for label.len() + 1
for now.
Thank you for the PR!
This actually used to use compose_len
– I probably broke it when changing that function to return a u16
.
There is a bug in
SliceLabelsIter
'snext()
implement that is causing it not able to return the full/right labels in the octets slice.StaticCompressor
leveragesSliceLabelsIter
to search known domain names in the underlying octets, is not able to find existing names because of this. Thus, leading to broken domain name compression in 0.10.0.