Closed DaniPopes closed 1 year ago
Ip addr decoding used static_left_pad, which fails if the buffer starts with a zero. This is incorrect and it also should not pad lower lengths
static_left_pad
Use <[u8; N]>::try_from(&[u8])
<[u8; N]>::try_from(&[u8])
Motivation
Ip addr decoding used
static_left_pad
, which fails if the buffer starts with a zero. This is incorrect and it also should not pad lower lengthsSolution
Use
<[u8; N]>::try_from(&[u8])
PR Checklist