mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
mks5lboot: Mark uint8_t[] struct members that are initialized from a character array as not containing a null terminator
Co-authored-by: ChatGPT (GPT-5.3 Mini) <chatgpt@openai.com> Change-Id: I77c3d4b907b175447fef522378d6e61d65f4d2cf
This commit is contained in:
parent
5c02cf3b3c
commit
1ded71b751
1 changed files with 6 additions and 6 deletions
|
|
@ -47,8 +47,8 @@ extern "C" {
|
|||
|
||||
struct Im3Info
|
||||
{
|
||||
uint8_t ident[4];
|
||||
uint8_t version[3];
|
||||
uint8_t ident[4] __attribute__((nonstring));
|
||||
uint8_t version[3] __attribute__((nonstring));
|
||||
uint8_t enc_type;
|
||||
uint8_t entry[4]; /* LE */
|
||||
uint8_t data_sz[4]; /* LE */
|
||||
|
|
@ -58,13 +58,13 @@ struct Im3Info
|
|||
uint8_t _reserved[32];
|
||||
} enc12;
|
||||
struct {
|
||||
uint8_t sign_off[4]; /* LE */
|
||||
uint8_t cert_off[4]; /* LE */
|
||||
uint8_t cert_sz[4]; /* LE */
|
||||
uint8_t sign_off[4] __attribute__((nonstring)); /* LE */
|
||||
uint8_t cert_off[4] __attribute__((nonstring)); /* LE */
|
||||
uint8_t cert_sz[4] __attribute__((nonstring)); /* LE */
|
||||
uint8_t _reserved[36];
|
||||
} enc34;
|
||||
} u;
|
||||
uint8_t info_sign[SIGN_SZ];
|
||||
uint8_t info_sign[SIGN_SZ] __attribute__((nonstring));
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct Im3Hdr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue