Language: C / C++. The pull request has one bug. You get three tries to find the line, then a short debrief.
The telemetry protocol's packets contain records addressed by an offset and a length from the packet header. This helper returns a view of one record and refuses anything that does not fit inside the packet, including offsets so large that adding the length would overflow.
Codetrap needs JavaScript: the code review happens in your browser.