Skip to content

Fixed zero divide in race conditions

Compare
Choose a tag to compare
@f4exb f4exb released this 22 Aug 22:23
· 25 commits to master since this release

Fixed zero divide in race conditions

In DSDSymbol::pushSample the m_count variable could be zero if some other thread resets it. In case it is zero it means the symbol sequence should be restarted. This should fix a possible program crash that was detected in SDRangel (issue: f4exb/sdrangel#406). In DSDcc this should fix #24

Issue when changing decode mode

When changing decode mode with DSDDecoder::setDecodeMode the state was not re-initialized properly resulting in the decoder being stuck in the previous mode. In consequence when changing baud rate in SDRangel the decoder could not detect the modes relevant to the new baud rate.