1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

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

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