From 651ca8c0a96f5e16a6bb5d3be14df155c7fc1927 Mon Sep 17 00:00:00 2001 From: jvn314 Date: Mon, 7 Sep 2026 17:44:34 -0500 Subject: [PATCH 1/6] Fix Meshtastic interpolator bandwidth update --- plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp b/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp index a94f8ae21..5e4693297 100644 --- a/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp +++ b/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp @@ -1234,7 +1234,7 @@ void MeshtasticDemodSink::applyChannelSettings(int channelSampleRate, int bandwi const int targetFrameSyncRate = std::max(1, bandwidth * static_cast(m_osFactor)); // Keep the anti-alias/channel filter narrow around the configured LoRa bandwidth. // A too-wide cutoff destabilizes preamble bin tracking in DETECT. - m_interpolator.create(16, channelSampleRate, m_bandwidth / 1.9f); + m_interpolator.create(16, channelSampleRate, bandwidth / 1.9f); m_interpolatorDistance = (Real) channelSampleRate / (Real) targetFrameSyncRate; m_sampleDistanceRemain = 0; m_osCounter = 0; From d717367e485066f490ba5bde38612f05e2e6d9c9 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Fri, 11 Sep 2026 00:49:17 -0400 Subject: [PATCH 2/6] Readme.md : Add project status badges Add Shield.io badges for the license, latest release, source activity, downloads, Coverity analysis, and GitHub issues. These badges provide an at-a-glance view of SDRangel's development activity, releases, adoption, code analysis, and community engagement. This makes the project's ongoing development and health more visible to users and potential contributors without requiring them to navigate through the repository. Use Shield.io for consistent badge presentation and link each badge to the corresponding project or status page. Signed-off-by: Robin Getz --- Readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Readme.md b/Readme.md index 4d3611e07..2adb76ba6 100644 --- a/Readme.md +++ b/Readme.md @@ -2,6 +2,15 @@ **SDRangel** is an open-source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware. +License : [![License](https://img.shields.io/github/license/f4exb/sdrangel)](https://github.com/f4exb/sdrangel/blob/master/LICENSE) +Latest Release : [![GitHub release](https://img.shields.io/github/release/f4exb/sdrangel.svg)](https://github.com/f4exb/sdrangel/releases/latest) +Source : [![Commits since last release](https://img.shields.io/github/commits-since/f4exb/sdrangel/latest)](https://github.com/f4exb/sdrangel/commits/master/) [![Size](https://img.shields.io/github/repo-size/f4exb/sdrangel)](https://github.com/f4exb/sdrangel) +Downloads : [![Github All Releases](https://img.shields.io/github/downloads/f4exb/sdrangel/total.svg)](https://github.com/f4exb/sdrangel/releases/latest) + +Analysis : [![Coverity Scan Build Status](https://img.shields.io/coverity/scan/33161.svg)](https://scan.coverity.com/projects/f4exb-sdrangel) +Issues : [![open issues](https://img.shields.io/github/issues/f4exb/sdrangel.svg)](https://github.com/f4exb/sdrangel/issues) +[![closed issues](https://img.shields.io/github/issues-closed/f4exb/sdrangel.svg)](https://github.com/f4exb/sdrangel/issues?q=is%3Aissue+is%3Aclosed) + **Wiki**: Most of the information and documentation related to SDRangel can be found in the [Wiki](https://github.com/f4exb/sdrangel/wiki). Please make sure to check it in case of questions or trouble and before you post issues on GitHub. You may also seek help from other users using the discussion group below. Before running the program, make sure you read at least the [Home](https://github.com/f4exb/sdrangel/wiki) and [Quick Start](https://github.com/f4exb/sdrangel/wiki/Quick-start) pages. **Discussion group**: You can ask other users for help or discuss subjects related to SDRangel and its ancillary projects [here](https://groups.io/g/sdrangel). From d49de06d0c692365db272b980295cda8aebdc4c0 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 12 Sep 2026 12:06:43 -0400 Subject: [PATCH 3/6] Python Example: Update Python 2 syntax in Swagger example Update the legacy randomize_colors.py Swagger example to use Python 3 print syntax. The Python 2 print statements prevented Bandit from parsing the file during Codacy analysis and caused the analysis step to fail. Verified that all Python files in the repository compile successfully with Python 3. Signed-off-by: Robin Getz --- swagger/sdrangel/examples/randomize_colors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swagger/sdrangel/examples/randomize_colors.py b/swagger/sdrangel/examples/randomize_colors.py index eb3611339..a1c75ccd2 100755 --- a/swagger/sdrangel/examples/randomize_colors.py +++ b/swagger/sdrangel/examples/randomize_colors.py @@ -182,11 +182,11 @@ def main(): randomize_channels_colors(options, channels) # full randomization (identical to -Hsv) else: print("Error getting deviceset %d info. HTTP: %d" % (options.device_index, r.status_code)) - print json.dumps(r.json(), indent=4, sort_keys=True) + print(json.dumps(r.json(), indent=4, sort_keys=True)) except Exception as ex: tb = traceback.format_exc() - print >> sys.stderr, tb + print(tb, file=sys.stderr) if __name__ == "__main__": From 46d8af246fa44e92eab7b7cf30aae7530e61a311 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sun, 13 Sep 2026 15:17:12 -0400 Subject: [PATCH 4/6] map/webserver : Fix WebServer substitution memory leak WebServer owns the substitution lists and the Substitution objects stored in those lists. The destructor previously deleted only the heap-allocated QList objects, leaving each Substitution allocated by addSubstitution() leaked. AddressSanitizer reported: Direct leak of 16 byte(s) in 1 object(s) allocated from: #0 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95 #1 in WebServer::addSubstitution(QString, QString, QString) ./plugins/feature/map/webserver.cpp:70 Fix deletes the Substitution objects before deleting their containing lists so the complete substitution hierarchy is released when WebServer is destroyed. Found by AddressSanitizer. Signed-off-by: Robin Getz --- plugins/feature/map/webserver.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/feature/map/webserver.cpp b/plugins/feature/map/webserver.cpp index b0c7830a1..e9abcac8b 100644 --- a/plugins/feature/map/webserver.cpp +++ b/plugins/feature/map/webserver.cpp @@ -45,7 +45,11 @@ WebServer::WebServer(quint16 &port, QObject* parent) : WebServer::~WebServer() { - qDeleteAll(m_substitutions); + for (QList *list : m_substitutions) + { + qDeleteAll(*list); + delete list; + } qDeleteAll(m_mimeTypes); } From 66a6427d0e9d8e5d18694c63e43c2d0955dd99f7 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sun, 13 Sep 2026 15:23:14 -0400 Subject: [PATCH 5/6] objectpipesregistrations: Fix ObjectPipesRegistrations memory leak ObjectPipesRegistrations owns the ObjectPipe objects registered in m_pipes, while the ObjectPipe elements are separately managed by ObjectPipeElementsStore. The normal pipe removal path releases both, but the ObjectPipesRegistrations destructor previously performed no cleanup. AddressSanitizer reported: Indirect leak of 56 byte(s) in 1 object(s) allocated from: #0 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95 #1 in ObjectPipesRegistrations::registerProducerToConsumer(QObject const*, QObject const*, QString const&) ./sdrbase/pipes/objectpipesregistrations.cpp:75 Release each pipe's element through ObjectPipeElementsStore before destroying the ObjectPipe itself. This mirrors the cleanup performed when a pipe is explicitly removed and prevents the registrations from retaining their allocated objects until process termination. Found by AddressSanitizer. Signed-off-by: Robin Getz --- sdrbase/pipes/objectpipesregistrations.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sdrbase/pipes/objectpipesregistrations.cpp b/sdrbase/pipes/objectpipesregistrations.cpp index 1e55d19e1..0b19ebfdb 100644 --- a/sdrbase/pipes/objectpipesregistrations.cpp +++ b/sdrbase/pipes/objectpipesregistrations.cpp @@ -25,7 +25,13 @@ ObjectPipesRegistrations::ObjectPipesRegistrations(ObjectPipeElementsStore *obje {} ObjectPipesRegistrations::~ObjectPipesRegistrations() -{} +{ + for (ObjectPipe *pipe : m_pipes) + { + m_objectPipeElementsStore->deleteElement(pipe->m_element); + delete pipe; + } +} ObjectPipe *ObjectPipesRegistrations::registerProducerToConsumer(const QObject *producer, const QObject *consumer, const QString& type) { From 025c9423e113bab57062c930799e298c4cba1c7d Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sun, 13 Sep 2026 15:26:58 -0400 Subject: [PATCH 6/6] device/deviceuiset: Fix GLSpectrumView use-after-free SpectrumVis retains a raw pointer to GLSpectrum while GLSpectrum is owned and destroyed by the Qt object hierarchy under DeviceUISet. DeviceUISet could therefore destroy GLSpectrum while the DSP thread still had access to the stale pointer through SpectrumVis. :( AddressSanitizer reported a use-after-free in: GLSpectrumView::updateSpectrumNoBuffer SpectrumVis::processFFT SpectrumVis::feed DSPDeviceSourceEngine::work with the GLSpectrumView destruction occurring from: GLSpectrumView::~GLSpectrumView() QObjectPrivate::deleteChildren() Clear the SpectrumVis GLSpectrum reference before destroying the Qt-owned GUI objects. This is safe with the DSP engine running because the SpectrumVis interface already treats the GLSpectrum reference as optional: processFFT() checks m_glSpectrum before using it. The GUI can therefore detach the spectrum visualization while DSP processing continues, after which the DSP path simply stops forwarding spectrum data to the deleted GUI object. Do not explicitly delete GLSpectrum here because its Qt parent owns it. Found by AddressSanitizer. Signed-off-by: Robin Getz --- sdrgui/device/deviceuiset.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/device/deviceuiset.cpp b/sdrgui/device/deviceuiset.cpp index 36b63bdc0..8370760ea 100644 --- a/sdrgui/device/deviceuiset.cpp +++ b/sdrgui/device/deviceuiset.cpp @@ -79,6 +79,7 @@ DeviceUISet::DeviceUISet(int deviceSetIndex, DeviceSet *deviceSet) DeviceUISet::~DeviceUISet() { + m_spectrumVis->setGLSpectrum(nullptr); delete m_mainSpectrumGUI; }