zephyr/drivers/modem
Michael Scott 44e977c467 drivers: modem: cmd_handler: save 1 char for NUL in match_buf
For parsing purposes we need to add a NUL to the end of match_buf.

When there is no CR/LF in the incoming rx bufs then we fill match_buf
to its max size.  This ended up with an off by one error which was
overflowing match_buf into the following data.

To account for this, let's fill the buffer to size - 1 so that we
leave room for the NUL at the end and stop corrupting data.

Signed-off-by: Michael Scott <mike@foundries.io>
2020-02-10 12:29:41 +02:00
..
CMakeLists.txt drivers: modem: Support GSM modems and PPP 2020-01-28 12:44:17 +02:00
gsm_ppp.c drivers: modem: gsm: Add support for getting modem info 2020-02-06 10:19:25 +02:00
Kconfig drivers: modem: Support GSM modems and PPP 2020-01-28 12:44:17 +02:00
Kconfig.gsm drivers: modem: Support GSM modems and PPP 2020-01-28 12:44:17 +02:00
Kconfig.ublox-sara-r4 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.wncm14a2a kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
modem_cmd_handler.c drivers: modem: cmd_handler: save 1 char for NUL in match_buf 2020-02-10 12:29:41 +02:00
modem_cmd_handler.h drivers: modem: Add support for different line endings 2020-02-05 23:31:56 +02:00
modem_context.c drivers: modem: context helper: introduce modem context helper driver 2019-08-10 00:03:39 +02:00
modem_context.h drivers: modem: Fix gpio compile errors with modem shell 2020-02-06 12:33:20 +02:00
modem_iface_uart.c drivers: modem: interface: introduce UART interface driver layer 2019-08-10 00:03:39 +02:00
modem_iface_uart.h drivers: modem: Document UART device name 2019-12-02 15:34:45 +01:00
modem_pin.c drivers: modem: Fix gpio compile errors with modem shell 2020-02-06 12:33:20 +02:00
modem_receiver.c driver: modem: add simple power management to modem receiver 2019-09-08 12:41:29 +02:00
modem_receiver.h driver: modem: add simple power management to modem receiver 2019-09-08 12:41:29 +02:00
modem_shell.c drivers: modem: context helper: introduce modem context helper driver 2019-08-10 00:03:39 +02:00
modem_socket.c drivers: modem: socket: add is_connected field to modem_socket 2020-02-10 12:29:41 +02:00
modem_socket.h drivers: modem: socket: add is_connected field to modem_socket 2020-02-10 12:29:41 +02:00
ublox-sara-r4.c drivers: modem: Add support for different line endings 2020-02-05 23:31:56 +02:00
wncm14a2a.c drivers: modem: wncm14a2a: Convert to the new GPIO API 2020-02-05 12:00:36 +01:00