name->component is a fixed size array. counter is incremented every time a new name component is encountered and the function does not check whether it exceeds the array capacity.
Therefore, an attacker can trigger a buffer overflow using this function.
As of c9e68eecab5632320df76726e9e581a4892208dc,
ndn_name_tlv_decode
function invokes:name->component
is a fixed size array.counter
is incremented every time a new name component is encountered and the function does not check whether it exceeds the array capacity. Therefore, an attacker can trigger a buffer overflow using this function.