vppinfra: fix memcpy undefined behaviour