Donny9 opened a new pull request #5159:
URL: https://github.com/apache/incubator-nuttx/pull/5159


   
   
   ## Summary
   Extend socket_storage to fix compile warning about rexecd.
   
   rexecd.c: In function 'rexecd_main':
   rexecd.c:191:9: warning: array subscript 18 is outside array bounds of 
'struct sockaddr_storage[1]' [-Warray-bounds]
     191 |         snprintf(((FAR struct sockaddr_rpmsg *)&addr)->rp_name,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     192 |                  RPMSG_SOCKET_NAME_SIZE, "%d", REXECD_PORT);
         |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   rexecd.c:142:27: note: while referencing 'addr'
     142 |   struct sockaddr_storage addr;
   
   Signed-off-by: Jiuzhu Dong <dongjiuz...@xiaomi.com>
   ## Impact
   fix compile warning
   ## Testing
   daily test
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to