mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fix memory corruption caused by MSP_BOXNAMES buffer overflow.
This commit is contained in:
parent
55f2be55f6
commit
5f4a49c08f
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ typedef enum {
|
|||
#define MSP_PORT_DATAFLASH_INFO_SIZE 16
|
||||
#define MSP_PORT_OUTBUF_SIZE (MSP_PORT_DATAFLASH_BUFFER_SIZE + MSP_PORT_DATAFLASH_INFO_SIZE)
|
||||
#else
|
||||
#define MSP_PORT_OUTBUF_SIZE 256
|
||||
#define MSP_PORT_OUTBUF_SIZE 320 // As of 2021/08/10 MSP_BOXNAMES generates a 307 byte response for page 1.
|
||||
#endif
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue