seokhun-eom24 commented on code in PR #13267: URL: https://github.com/apache/nuttx/pull/13267#discussion_r4678368585
########## sched/mqueue/mqueue.h: ########## @@ -72,7 +74,7 @@ struct mqueue_msg_s #else uint16_t msglen; /* Message data length */ #endif - char mail[MQ_MAX_BYTES]; /* Message data */ + char mail[1]; /* Message data */ Review Comment: char mail[]; is better than char mail[1]; https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/declarations-and-initialization-dcl/dcl38-c/ -- 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]
