mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Fix buffer overrun in the serial code.
This commit is contained in:
parent
f4262c3a24
commit
a1b51d4dff
2 changed files with 2 additions and 2 deletions
|
|
@ -413,7 +413,7 @@ void CSerialPort::process()
|
|||
if (m_ptr == 2U)
|
||||
m_len = m_buffer[1U];
|
||||
|
||||
if (m_ptr == 3U && m_len > 230U) {
|
||||
if (m_ptr == 3U && m_len > 250U) {
|
||||
sendNAK(3U);
|
||||
m_ptr = 0U;
|
||||
m_len = 0U;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue