1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Merge pull request #163 from jigpu/sanitizer-fixes

Sanitizer fixes
This commit is contained in:
f4exb 2018-04-22 07:39:19 +02:00 committed by GitHub
commit 808336c96b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,7 @@ RDSDemod::RDSDemod()
m_srate = 250000;
m_parms.subcarr_phi = 0;
memset(m_parms.subcarr_bb, 0, sizeof(m_parms.subcarr_bb));
m_parms.clock_offset = 0;
m_parms.clock_phi = 0;
m_parms.prev_clock_phi = 0;
@ -48,6 +49,7 @@ RDSDemod::RDSDemod()
m_parms.prev_acc = 0;
m_parms.counter = 0;
m_parms.reading_frame = 0;
memset(m_parms.tot_errs, 0, sizeof(m_parms.tot_errs));
m_parms.dbit = 0;
m_prev = 0.0f;
memset(m_xv, 0, 6*sizeof(Real));

View File

@ -328,8 +328,8 @@ void FileSourceGui::updateWithStreamTime()
int t_msec = 0;
if (m_sampleRate > 0){
t_msec = ((m_samplesCount * 1000) / m_sampleRate) % 1000;
t_sec = m_samplesCount / m_sampleRate;
t_msec = (m_samplesCount - (t_sec * m_sampleRate)) * 1000 / m_sampleRate;
}
QTime t(0, 0, 0, 0);

View File

@ -209,7 +209,7 @@ int RTPSession::InternalCreate(const RTPSessionParams &sessparams)
// Init the RTCP packet builder
double timestampunit = sessparams.GetOwnTimestampUnit();
uint8_t buf[1024];
uint8_t buf[1024] = {0};
std::size_t buflen = 1024;
std::string forcedcname = sessparams.GetCNAME();