Skip to content

Commit

Permalink
Fix xdrv_122_file_settings_demo buffer overflow (#19405)
Browse files Browse the repository at this point in the history
  • Loading branch information
curzon01 authored Aug 29, 2023
1 parent a4cfc41 commit 39083b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct {
uint32_t crc32; // To detect file changes
uint16_t version; // To detect driver function changes
uint16_t spare;
char drv_text[DRV_DEMO_MAX_DRV_TEXT -1][10];
char drv_text[DRV_DEMO_MAX_DRV_TEXT][10];
} DrvDemoSettings;

// Global structure containing driver non-saved variables
Expand Down

0 comments on commit 39083b6

Please sign in to comment.