Jon Beniston
60db861797
Fix QString leak in the web API settings and report formatters
...
The generated SWG setters overwrite the string pointer without deleting
what is already there, and every webapiSettingsGet and webapiReportGet
calls init() first, which has allocated one. Each call therefore leaked a
QString per string field. Measured at 117 bytes per settings GET for the
Satellite Tracker, over 20,000 requests.
Assign in place when the pointer is already set, which is what these same
functions have always done for title and reverseAPIAddress. 394 sites
across webapiFormatChannelSettings, webapiFormatDeviceSettings,
webapiFormatFeatureSettings and the three report equivalents.
The webapiReverseSend* functions are deliberately left alone: they build a
fresh SWG object whose constructor leaves the pointers null, so passing a
new QString is correct there.
After the change the same measurement is flat, at 7 bytes per GET.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2 months ago
Robin Getz
c170e03ddd
rtl-sdr: Fix out-of-bounds tuner name lookup
...
Validate the tuner type index before accessing the tuner name table.
The previous check allowed an index equal to names.size(), which could
result in an out-of-range QStringList access.
Use a local integer value for the enum conversion and ensure only valid
indices are used when looking up tuner names.
pointed out by cppcheck: Access out of bounds
Signed-off-by: Robin Getz <rgetz503@gmail.com>
4 months ago
f4exb
63348eeee1
Make device title editable in the basic device settings. Fixes #2292
10 months ago
Jon Beniston
2538662c9b
Fixes for Android
2 years ago
srcejon
5d1478d047
Formatting
2 years ago
srcejon
4ac29d2052
Remove debug.
2 years ago
srcejon
acb278bbff
RTLSDR: Apply driver settings in RTLSDRThread, to avoid blocking main thread. Add sync read for WebAssembly.
2 years ago
f4exb
37e06de0ed
DeviceGUI: removed destroy method. Part of #2159
2 years ago
f4exb
beaf2932ba
RTLSDR: make sure start and stop are effective once only. PArt of #2159
2 years ago
Daniele Forsi
4241f01376
Fix typos in cpp files
2 years ago
Mykola Dvornik
15337cac66
Fix bug that prevents settings changes updates via reverse API
...
Most plugins that use reverse API to PATCH settings updates to remote
server only do so when `useReverseAPI` is toggled, but not when the
relevant settings are being updated. So lets fix the precondition to
use the `m_useReverseAPI` flag instead.
3 years ago
Daniele Forsi
8c3f7e3775
Remove unused includes and use more direct includes
3 years ago
srcejon
7cc9cd1bf1
Add instant replay
3 years ago
f4exb
b6c4d10b62
Rewriting of copyright notices for plugins/samplesource. Part of #1893
3 years ago
Jon Beniston
28c566f84c
Add tunerType to Web API report
3 years ago
Jon Beniston
2c636afa67
Add support for RTLSDRBlog V4 with HF upsampler
3 years ago
Jon Beniston
05914cc0ba
Fix RTLSDR E4000 gain and bandwidth settings. Add tuner type to GUI.
3 years ago
Jon Beniston
7aea12e6fe
On Android, list USB devices by VID/PID and open using file descriptor.
4 years ago
f4exb
66f34d5500
RTL-SDR: set max frequency limit to 2.4 GHz. Fixes #1497
4 years ago
f4exb
b129349b02
RTL-SDR: Make settings assignments atomic. Part of #1329
4 years ago
Jon Beniston
929e0d34dc
Adjust number of frequency digits depending whether transverter is enabled
4 years ago
f4exb
4111c967e9
Fixed some signal/slot connects. Removed unnecessary m_channelMessageQueue in ChannelAPI. Fixes #1185
5 years ago
f4exb
053e4a31cd
Add label to SampleSinkFifo to mention controlling component in error messages
5 years ago
f4exb
09599e145e
Added signals to SampleSinkFifo including samples timings. Implements #1143 and part of #1139
5 years ago
Edouard Griffiths
465944f671
Merge pull request #673 from kasper93/rtlsdr_sr
...
RTL-SDR: Adjust sample rate limits
6 years ago
f4exb
e6e7ece46c
Removed file recording function from device plugins
6 years ago
f4exb
e62b0c7836
RTL-SDR bias tee. Implements #533
6 years ago
f4exb
c4136c6a44
IQ swap: REST API: implementation in plugins
7 years ago
f4exb
cc5d614f67
IQ swap: initial implementation in plugins
7 years ago
f4exb
b317c0a59d
REST API: device and channel actions: fixes to implementation
7 years ago
f4exb
07c11edb87
REST API device and channel actions: general implementation and RTLSDR and FileSource implementations
7 years ago
f4exb
246ff824af
Corrected network manager process memory leaks (Rx side)
7 years ago
f4exb
7688f187bc
REST API: config: use specialized ChannelWebAPIAdapter class similar to what has been done for devices
7 years ago
f4exb
a078239685
REST API: config: GET (11). Support of the rest of devices
7 years ago
f4exb
06dea9b29f
PVS-Studio analys fixes: core package serious issues
8 years ago
f4exb
b01c4e2477
Device API: added a number of source and sink streams and update it from the plugins
8 years ago
f4exb
89e53cf179
Single DeviceAPI interface (1)
8 years ago
f4exb
54e46837dd
REST API: changed binary tx parameter to ternary direction parameter (0: rx, 1: tx, 2: any)
8 years ago
f4exb
4bb0f4f51a
Fixed incomplete copyright headers (2): plugins/samplesource
8 years ago
f4exb
f4d0066edf
RTL-SDR: fixed gain setting sequence (issue #321 )
8 years ago
f4exb
e2ac286458
Series of shifted decimators matching shifted interpolators. Applied to HackRF input
8 years ago
f4exb
546d8dca5e
Reverse API originator information: implemented for start/stop in RTL-SDR and TestSource
8 years ago
f4exb
5cbadf9b3b
Reverse API originator information implementation with RTL-SDR, Lime-SDR Tx, AM demod, AM mod examples
8 years ago
f4exb
46e92e41dc
REST API: fixed reverse API address setting
8 years ago
f4exb
65e7519cd1
FCD: added decimation and center frequency shift
8 years ago
f4exb
67a33e3084
RTL-SDR input: normalize apply settings
8 years ago
f4exb
7c4b4bc795
Reverse API: format updates
8 years ago
f4exb
c02b9a270a
Reverse API: added content type when request has JSON body
8 years ago
f4exb
442f23ca91
Reverse API: RTL-SDR (4) and Test Source (2) input changes
8 years ago
f4exb
1dc8ca3a98
Reverse API: network reply error message enhancement. Added Q_OBJECT to test source and RTL-SDR input definitions to handle network reply correctly.
8 years ago