ble-uart: Prevent buffer overflow
Compare changes
- rahix authored
For messages with lines longer than 129 characters, ble_uart_write would start overwriting adjacent memory. This commit fixes this by starting a new line once the buffer runs full. Signed-off-by:
Rahix <rahix@rahix.de>
+ 14
− 14
@@ -119,18 +119,20 @@ static uint8_t UARTWriteCback(
@@ -141,16 +143,14 @@ void ble_uart_write(uint8_t *pValue, uint8_t len)