Previously, geoReply() combined the sender null check with the reply error
check, allowing a null pQGeoCode to reach the error handling and subsequent
cleanup, which deferenced the pointer it was checking.
Check for a null sender first and return immediately when dynamic_cast()
fails. Valid replies then proceed through the existing error handling and
cleanup safely.
pointed out by cppcheck's nullPointerRedundantCheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Previously, geoReply() combined the sender null check with the reply error
check, allowing a null pQGeoCode to reach the error handling and subsequent
deleteLater() call.
Check for a null sender first and return immediately when dynamic_cast()
fails. Valid replies then proceed through the existing error handling and
cleanup safely.
pointed out by cppcheck's nullPointerRedundantCheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the previously uninitialized m_rgbColor member to black to eliminate
the cppcheck UNINIT_CTOR warning. This ensures the map color starts in a defined
state and avoids undefined behavior from reading an uninitialized value.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize previously uninitialized ObjectMapModel display and longitude members to
defined values to eliminate cppcheck UNINIT_CTOR warnings. This ensures display
options and map view state start in a known state and avoids undefined behavior
from reading uninitialized members.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the previously uninitialized aircraft state and roll members to
defined values to eliminate cppcheck UNINIT_CTOR warnings. This ensures the
stored aircraft state starts in a known state and avoids undefined behavior
from reading uninitialized values.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Add a destructor to ObjectMapItem to release its owned m_aircraftState.
ObjectMapItem allocates m_aircraftState when aircraft state is present,
but had no corresponding cleanup when the map item was destroyed.
Coverity reported the allocation as a constructor/destructor resource
leak.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Add support for public list of SDRangel servers that can be displayed on Map.
Add FLAC and zlib IQ compression.
Add IQ squelch for compression.
Add remote device/antenna position and direction reporting.
Add text messaging.