You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this is currently working fine as is, there is actually UB in this code, in both the read_chunked_utf8_string and the read_domainname function, as calling set_len on a vector before filling up that vector means that area of the vector, which is now considered initialized, is actually uninitialized.
Fix by using Vec::spare_capacity_mut.
The text was updated successfully, but these errors were encountered:
While this is currently working fine as is, there is actually UB in this code, in both the
read_chunked_utf8_string
and theread_domainname
function, as callingset_len
on a vector before filling up that vector means that area of the vector, which is now considered initialized, is actually uninitialized.Fix by using
Vec::spare_capacity_mut
.The text was updated successfully, but these errors were encountered: