Skip to content
RED SAG Skills
medium10 pts · first answer countsembedded-cundefined-behaviour

Shifting bytes inside a buffer

To drop the first 3 bytes of a 64-byte buffer, a developer uses memcpy(buf, buf + 3, 61). Why is this a bug?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions