sdrangel/qrtplib
Jason Gerecke 7c67b7de7c qrtplib: clear buffer fed to RTPSession::CreateCNAME
The RTPSession::CreateCNAME function checks to see if the buffer that
it is provided already has any data in it, and appends to it if so. The
RTPSession::InternalCreate function calls this function with an uninitialized
buffer, which results in indeterminate behavior. To ensure that the CNAME
is properly created, we clear the buffer before use.

==30323== Conditional jump or move depends on uninitialised value(s)
==30323==    at 0x4C30109: __strlen_sse2 (vg_replace_strmem.c:460)
==30323==    by 0x85647A4: qrtplib::RTPSession::CreateCNAME(unsigned char*, unsigned long*, bool) (rtpsession.cpp:1150)
==30323==    by 0x8564B35: qrtplib::RTPSession::InternalCreate(qrtplib::RTPSessionParams const&) (rtpsession.cpp:218)
==30323==    by 0x5499159: RTPSink::RTPSink(QUdpSocket*, int, bool) (rtpsink.cpp:48)
==30323==    by 0x5420B6A: AudioNetSink::AudioNetSink(QObject*, int, bool) (audionetsink.cpp:42)
==30323==    by 0x541F465: AudioOutput::start(int, int) (audiooutput.cpp:114)
==30323==    by 0x5412763: AudioDeviceManager::startAudioOutput(int) (audiodevicemanager.cpp:361)
==30323==    by 0x5412B0C: AudioDeviceManager::addAudioSink(AudioFifo*, MessageQueue*, int) (audiodevicemanager.cpp:229)
==30323==    by 0x33F96DE7: BFMDemod::BFMDemod(DeviceSourceAPI*) (bfmdemod.cpp:56)
==30323==    by 0x33FB03F2: non-virtual thunk to BFMPlugin::createRxChannelBS(DeviceSourceAPI*) (bfmplugin.cpp:62)
==30323==    by 0x4F47F25: DeviceUISet::loadRxChannelSettings(Preset const*, PluginAPI*) (deviceuiset.cpp:199)
==30323==    by 0x4EA51EA: MainWindow::loadPresetSettings(Preset const*, int) (mainwindow.cpp:575)
==30323==    by 0x4EAC81B: MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) (mainwindow.cpp:176)
==30323==    by 0x10A49B: runQtApplication(int, char**, qtwebapp::LoggerWithFile*) (main.cpp:120)
==30323==    by 0x109B38: main (main.cpp:131)
2018-04-21 18:52:20 -07:00
..
CMakeLists.txt
qrtplib.pro
rtcpapppacket.cpp
rtcpapppacket.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpbyepacket.cpp
rtcpbyepacket.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpcompoundpacket.cpp
rtcpcompoundpacket.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpcompoundpacketbuilder.cpp
rtcpcompoundpacketbuilder.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcppacket.h
rtcppacketbuilder.cpp
rtcppacketbuilder.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcprrpacket.cpp
rtcprrpacket.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpscheduler.cpp
rtcpscheduler.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpsdesinfo.cpp
rtcpsdesinfo.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpsdespacket.cpp
rtcpsdespacket.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpsrpacket.cpp
rtcpsrpacket.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtcpunknownpacket.h
rtpaddress.cpp
rtpaddress.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtpcollisionlist.cpp
rtpcollisionlist.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtpconfig.h
rtpdefines.h
rtpendian.h
rtperrors.cpp
rtperrors.h
rtpinternalsourcedata.cpp
rtpinternalsourcedata.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtpinternalutils.h
rtpkeyhashtable.h
rtplibraryversioninternal.h
rtppacket.cpp qrtplib: fixed urandom calls 2018-03-29 19:55:03 +02:00
rtppacket.h qrtplib: fixed urandom calls 2018-03-29 19:55:03 +02:00
rtppacketbuilder.cpp qrtplib: fixed urandom calls 2018-03-29 19:55:03 +02:00
rtppacketbuilder.h qrtplib: fixed urandom calls 2018-03-29 19:55:03 +02:00
rtprandom.cpp
rtprandom.h qrtplib: fixed urandom calls 2018-03-29 19:55:03 +02:00
rtprandomrand48.cpp qrtplib: fixed urandom calls 2018-03-29 19:55:03 +02:00
rtprandomrand48.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtprandomrands.cpp
rtprandomrands.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtprandomurandom.cpp qrtplib: fixed urandom calls 2018-03-29 19:55:03 +02:00
rtprandomurandom.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtprawpacket.h
rtpsession.cpp qrtplib: clear buffer fed to RTPSession::CreateCNAME 2018-04-21 18:52:20 -07:00
rtpsession.h PVS-Studio static analysis corrections (4) 2018-04-04 23:39:31 +02:00
rtpsessionparams.cpp
rtpsessionparams.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtpsessionsources.cpp
rtpsessionsources.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtpsocketutil.h
rtpsourcedata.cpp
rtpsourcedata.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtpsources.cpp
rtpsources.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtpstructs.h
rtptimeutilities.cpp
rtptimeutilities.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00
rtptransmitter.h
rtptypes.h
rtptypes_win.h
rtpudptransmitter.cpp PVS-Studio static analysis corrections (4) 2018-04-04 23:39:31 +02:00
rtpudptransmitter.h Moved export.h file to root of exports directory and removed util 2018-03-20 13:49:21 +01:00