xiaoxiang781216 commented on code in PR #21392:
URL: https://github.com/apache/nuttx/pull/21392#discussion_r4449751130
##########
drivers/net/lan9250.c:
##########
@@ -842,6 +847,8 @@ static void lan9250_recv_buffer(FAR struct lan9250_driver_s
*priv,
FAR uint8_t *buffer,
size_t buflen)
{
+ DEBUGASSERT(buflen <= sizeof(priv->pktbuf));
Review Comment:
why move before variables definition
--
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]