cederom commented on code in PR #18857:
URL: https://github.com/apache/nuttx/pull/18857#discussion_r3210367649
##########
net/sixlowpan/sixlowpan_input.c:
##########
@@ -200,6 +213,14 @@ static uint16_t sixlowpan_uncompress_ipv6proto(FAR uint8_t
*fptr,
FAR struct tcp_hdr_s *tcp =
(FAR struct tcp_hdr_s *)(fptr + g_frame_hdrlen);
+ /* Check if the frame is too short */
+
+ if (fptr + g_frame_hdrlen + sizeof(struct tcp_hdr_s) > endofframe)
Review Comment:
too short or too long? :-P
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]