Commit Graph
10 Commits
Author SHA1 Message Date
Robin Getz c2b30d4fa8 tree wide: Fix message ownership and reporting for unhandled queue messages
MessageQueue::pop() transfers ownership of the popped message to the
caller, but many handleInputMessages() implementations only deleted
the message when handleMessage() returned true. When a message was not
handled, ownership had already been transferred from the queue and the
message was leaked.

This was identified while investigating an ASAN leak in the audio
subsystem.

Update the applicable handleInputMessages() implementations to always
delete messages after handleMessage() returns. Unhandled messages are
also logged with the component and message identifier so unexpected
message routing is visible during debugging.

This change:
- Ensures every message popped from a queue has its ownership resolved.
- Prevents leaks when handleMessage() returns false.
- Makes unhandled messages visible instead of silently discarding them.
- Preserves the existing message handling logic and does not require
  components to handle message types that are legitimately irrelevant
  to them.

The changes are intentionally mechanical and limited to the common
message queue ownership and diagnostic pattern.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-25 23:49:05 -04:00
Robin Getz 965382fd69 rigctlserverworker: Initialize RigCtlServerWorker target state
Initialize previously uninitialized RigCtlServerWorker target frequency,
offset, and bandwidth members to defined values to eliminate cppcheck
UNINIT_CTOR warnings. This ensures target settings start in a known state
and avoids undefined behavior from reading uninitialized values.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-13 20:22:57 -04:00
f4exb 77b2b815b8 Replace sprintf by snprintf wherever possible 2025-04-21 14:34:53 +02:00
Daniele Forsi 4241f01376 Fix typos in cpp files 2024-07-10 23:06:38 +02:00
f4exb 00b041d762 Rewriting of copyright notices for plugins/features. Part of #1893 2023-11-18 13:12:18 +01:00
f4exb 541b8449fd RigCrl Server feature: Make settings assignments atomic. Part of #1329 2022-11-27 13:36:48 +01:00
Jiří Pinkava 0df2d75e6d Replace deprecated QMutex(Recursive) with QRecursiveMutex 2022-09-17 23:00:07 +02:00
f4exb 7a6636b63a Fixed -Wunused-variable warnings 2020-11-14 18:45:05 +01:00
Christian W. Zuckschwerdt 20a8bd8c71 Fix missing cmath include 2020-10-30 11:20:08 +01:00
f4exb 586d07bcb7 RigCtl Server: added plugin 2020-09-28 19:37:40 +02:00