fix buffer overflow for certain unsupported configurations (the log message was irritating me so I fixed this);

3.56-maint
Bryan Biedenkapp 2 years ago
parent 1bda15cd85
commit 7c674daeaf

@ -1129,7 +1129,7 @@ void Control::addFrame(const uint8_t* data, uint32_t length, bool net, bool imm)
return;
}
// resize immediate queue if necessary (this shouldn't really ever happen)
// resize queue if necessary (this shouldn't really ever happen)
uint32_t space = m_txQueue.freeSpace();
if (space < (length + 1U)) {
if (!net) {

@ -1744,7 +1744,7 @@ void ControlSignaling::writeRF_TDULC_ChanRelease(bool grp, uint32_t srcId, uint3
}
uint32_t count = m_p25->m_hangCount / 2;
if (!m_p25->m_dedicatedControl) {
if (!m_p25->m_dedicatedControl || m_p25->m_voiceOnControl) {
count = count / 2;
}
std::unique_ptr<lc::TDULC> lc = nullptr;

Loading…
Cancel
Save

Powered by TurnKey Linux.