sjanc opened a new pull request, #162:
URL: https://github.com/apache/mynewt-mcumgr/pull/162

   Hash len is 32 bytes.
   
   repos/apache-mynewt-mcumgr/cmd/img_mgmt/src/img_mgmt.c:
        In function ‘img_mgmt_read_info’:
   repos/apache-mynewt-mcumgr/cmd/img_mgmt/src/img_mgmt.c:122:9:
        error: ‘memcpy’ reading 32 bytes from a region of size 16
        [-Werror=stringop-overread]
     122 |         memcpy(hash, dummy_hash, IMG_MGMT_HASH_LEN);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   repos/apache-mynewt-mcumgr/cmd/img_mgmt/src/img_mgmt.c:114:13:
        note: source object ‘dummy_hash’ of size 16
     114 |     uint8_t dummy_hash[] = {0x00, 0x11, 0x22, 0x33,
                                       0x44, 0x55, 0x66, 0x77,
         |             ^~~~~~~~~~
   cc1: all warnings being treated as errors


-- 
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...@mynewt.apache.org

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

Reply via email to