mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Fix length overflow for P25 LDU packets.
This commit is contained in:
parent
5dec3b5a6d
commit
694fe6b7af
1 changed files with 1 additions and 1 deletions
|
|
@ -951,7 +951,7 @@ RESP_TYPE_MMDVM CModem::getResponse()
|
|||
if (ret == 0)
|
||||
return RTM_TIMEOUT;
|
||||
|
||||
if (m_buffer[1U] >= 150U) {
|
||||
if (m_buffer[1U] >= 250U) {
|
||||
LogError("Invalid length received from the modem - %u", m_buffer[1U]);
|
||||
m_offset = 0U;
|
||||
return RTM_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue