1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-27 22:16:23 -04:00
Commit Graph

11086 Commits

Author SHA1 Message Date
Zane (RainCicada) 87e1cabfca sdrsrv: fix null-deref in MainServer::addMIMODevice()
addMIMODevice() never assigned m_deviceSets.back()->m_deviceAPI before
dereferencing it via setSampleMIMO(), causing the very first
POST /sdrangel/deviceset?direction=2 against a fresh headless server
to SIGSEGV in DeviceAPI::setSampleMIMO()'s vtable lookup.

DeviceSet's constructor initializes m_deviceAPI to nullptr
(sdrbase/device/deviceset.cpp:38), and the sibling helpers
addSinkDevice() (line 283) and addSourceDevice() (line 323) both
assign the new DeviceAPI* into m_deviceSets.back()->m_deviceAPI
before any later dereference. addMIMODevice() omits this assignment,
so the line that today reads:

    m_mainCore->m_deviceSets.back()->m_deviceAPI->setSampleMIMO(mimo);

dereferences nullptr.

Fix by performing the same assignment as the Sink/Source paths, just
before the createSampleMIMOPluginInstance() call.

Verified against v7.25.1 in a custom headless build
(cicada-sdrangelsrv:7.25.1-mimo) with a LimeSDR-USB:

  - Pre-patch: POST /sdrangel/deviceset?direction=2 -> HTTP 202,
    then immediate SIGSEGV (backtrace top frame
    DeviceAPI::setSampleMIMO -> MainServer::addMIMODevice).
  - Post-patch: POST -> HTTP 202, container healthy, follow-up
    PUT /sdrangel/deviceset/0/device with hwType=LimeSDR
    direction=2 -> HTTP 202, deviceset reports the LimeSDR
    correctly bound as a MIMO device.
2026-05-21 21:40:04 -05:00
Edouard Griffiths f8eb645546 Merge pull request #2737 from AsciiWolf/patch-1
Bump copyright year
2026-05-21 02:05:40 +02:00
Edouard Griffiths 1a6b918e57 Merge pull request #2735 from srcejon/flatpak
Fix Flatpak build
2026-05-21 01:05:57 +02:00
AsciiWolf 6e06546f2c Bump copyright year 2026-05-20 12:12:25 +02:00
Edouard Griffiths 14ee0c5cee Merge pull request #2734 from AsciiWolf/patch-1
flatpak: Update hamlib-4.6.5.tar.gz to 4.7.1
2026-05-20 11:57:23 +02:00
Edouard Griffiths 3d6c36b18e Merge pull request #2732 from srcejon/workflow_dispatch
Add workflow_dispatch so github actions can be triggered manually.
2026-05-20 10:30:04 +02:00
Edouard Griffiths c67c8e593e Merge pull request #2731 from srcejon/fix_2730
Add find_package(FLAC) for when !ENABLE_EXTERNAL_LIBRARIES
2026-05-19 19:22:50 +02:00
AsciiWolf dc676326c1 flatpak: Update hamlib-4.6.5.tar.gz to 4.7.1 2026-05-19 14:40:25 +02:00
Jon Beniston 9df66f8473 Use container 2026-05-19 07:59:42 +01:00
Jon Beniston de6bdf6ac4 No sudo 2026-05-19 07:56:05 +01:00
Jon Beniston bfaea80858 Try --user 2026-05-19 07:52:08 +01:00
Jon Beniston 01b8329ba1 Use sudo to fix permission error 2026-05-19 07:46:05 +01:00
Edouard Griffiths f009d46868 Merge pull request #2729 from srcejon/flatpak
Update flatpak for compatibility with older CPUs
2026-05-19 00:57:41 +02:00
Jon Beniston 04f3fa3a30 Install flatpak and builder 2026-05-18 21:30:05 +01:00
srcejon 396c7a1f9c Merge branch 'f4exb:master' into flatpak 2026-05-18 21:27:26 +01:00
Jon Beniston 08a864fc0a Add workflow_dispatch so actions can be triggered manually. 2026-05-18 21:24:23 +01:00
Jon Beniston 37b6b3a601 Use FLAC_LIBRARIES, as that's what's used elsewhere. 2026-05-18 21:02:39 +01:00
Jon Beniston 8e002f1736 Add find_package(FLAC) for when !ENABLE_EXTERNAL_LIBRARIES 2026-05-18 20:59:40 +01:00
Edouard Griffiths badb759cbe Merge pull request #2728 from srcejon/snap
Fix cspice build in snap
2026-05-17 20:54:30 +02:00
Edouard Griffiths fb840a3444 Merge pull request #2727 from f4exb/copilot/add-github-action-flatpak
Add Flatpak CI workflow for build artifacts and tag-based release publishing
2026-05-17 19:57:38 +02:00
Jon Beniston 4f9d418d9e Disable AVX instruction use for fftw.
Use -DENABLE_DISTRIBUTION=ON for cm256cc.
Add -DCSPICE_BUILD_STATIC_LIBRARY=OFF for cspice.
2026-05-17 14:21:57 +01:00
Jon Beniston ac35fe3da2 Fix cspice build in snap 2026-05-17 11:30:05 +01:00
copilot-swe-agent[bot] bf18a83ef3 Simplify Flatpak workflow and broaden cache key inputs
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:58:42 +00:00
copilot-swe-agent[bot] 510316bf7e Improve Flatpak workflow cache key reuse
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:58:13 +00:00
copilot-swe-agent[bot] a0fd813169 Clarify architecture variable expansion in Flatpak workflow
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:57:48 +00:00
copilot-swe-agent[bot] 7b3792ed3e Harden Flatpak workflow trigger handling and artifact naming
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:57:20 +00:00
copilot-swe-agent[bot] 12091f5f10 Refine Flatpak workflow versioning and architecture handling
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:56:48 +00:00
copilot-swe-agent[bot] 34d40a8661 Use consistent GitHub env vars in Flatpak version step
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:56:17 +00:00
copilot-swe-agent[bot] 11858ebb0e Fix Flatpak workflow tag parsing shell syntax
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:55:11 +00:00
copilot-swe-agent[bot] 25652c4483 Harden Flatpak workflow permissions and version handling
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:54:46 +00:00
copilot-swe-agent[bot] e6a50381e9 Add GitHub Actions workflow to build and publish Flatpak bundle
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:54:09 +00:00
copilot-swe-agent[bot] 6446d7c1b2 Initial plan 2026-05-17 08:52:19 +00:00
Edouard Griffiths 9d463b1ed8 Merge pull request #2718 from tammojan/macos_sigmf
Make external libsigmf build on macos
2026-05-06 02:34:39 +02:00
Tammo Jan Dijkema 6d4638afd0 Fix libsigmf installation on mac 2026-05-05 21:53:03 +02:00
Tammo Jan Dijkema 27e72529f3 Update CMake version in flatbuffers 2026-05-05 21:21:38 +02:00
Tammo Jan Dijkema 30d62075c7 Make external libsigmf build on macos 2026-05-05 17:51:16 +02:00
Edouard Griffiths b2021860d8 Merge pull request #2717 from srcejon/copilot/add-freqdisplay-plugin
Frequency Display updates
2026-05-05 13:49:06 +02:00
srcejon 7c86f411e4 Merge branch 'f4exb:master' into copilot/add-freqdisplay-plugin 2026-05-05 10:46:56 +01:00
srcejon e3e2f5bb20 Add active only button. Increase poll frequency. Support channels that don't have a frequency offset. 2026-05-05 10:45:24 +01:00
f4exb 6b236c7a0d Release 7.25.1 v7.25.1 2026-05-05 08:07:51 +02:00
f4exb 3f7152bc6f Allow Linux build to be tested locally with act 2026-05-04 22:51:03 +02:00
f4exb db4f4810b4 Fix Debian changelog warnings 2026-05-04 22:50:30 +02:00
f4exb eab2e1b10a Fix Linux cspice location 2026-05-04 19:15:22 +02:00
Edouard Griffiths 8d18bb5de7 Merge pull request #2716 from f4exb/copilot/fix-linux-release-build-failure-cspice
fix(external/cspice): suppress -Werror=format-security for cspice ExternalProject on Linux
2026-05-04 12:22:36 +02:00
copilot-swe-agent[bot] 3717ccf4e5 fix(external): disable -Werror=format-security for cspice ExternalProject on Linux
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/6836e1ac-619b-460b-a5f8-21c542826bc8

Co-authored-by: f4exb <6192319+f4exb@users.noreply.github.com>
2026-05-04 08:31:38 +00:00
copilot-swe-agent[bot] aade98f84c Initial plan 2026-05-04 08:29:56 +00:00
f4exb ef4357f26b Release 7.25.0 v7.25.0 2026-05-04 06:00:17 +02:00
Edouard Griffiths 69c6929fb0 Merge pull request #2712 from tammojan/cmake_qt6.2
Use Qt6.2 compatible qt_add_plugin in CMake
2026-04-28 20:20:12 +02:00
Edouard Griffiths fd7a3bf114 Merge pull request #2711 from jvn314/feature-meshtastic-more-udp
Meshtastic Decoder JSON Output
2026-04-26 04:39:20 +02:00
Tammo Jan Dijkema c86c178363 Use Qt6.2 compatible qt_add_plugin in CMake 2026-04-25 17:11:41 +02:00