Fix memory corruption caused by MSP_BOXNAMES buffer overflow.

This commit is contained in:
Dominic Clifton 2021-08-10 12:01:16 +02:00
parent 55f2be55f6
commit 5f4a49c08f
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {