Robin Getz
46d8af246f
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 <addr> in operator new(unsigned long)
../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
#1 <addr> 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 <rgetz503@gmail.com>
2 months ago
srcejon
29f7d534e5
Support wasm files in web server.
1 year ago
Daniele Forsi
de131d1f6d
Fix memleaks found with AddressSanitizer/LeakSanitizer
...
Found with:
ASAN_OPTIONS="detect_odr_violation=1,strip_path_prefix=$(pwd)/" build/sdrangel
Fixes:
Direct leak of 8 byte(s) in 1 object(s) allocated from:
#0 0x7efeb72f46b8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
#1 0x7efe83515718 in WebServer::addSubstitution(QString, QString, QString) sdrangel/plugins/feature/map/webserver.cpp:84
#2 0x7efe83559c9e in MapGUI::applyMap3DSettings(bool) sdrangel/plugins/feature/map/mapgui.cpp:1789
#3 0x7efe8355e483 in MapGUI::displaySettings() sdrangel/plugins/feature/map/mapgui.cpp:1964
#4 0x7efe834be0f6 in MapGUI::MapGUI(PluginAPI*, FeatureUISet*, Feature*, QWidget*) sdrangel/plugins/feature/map/mapgui.cpp:376
#5 0x7efe835372f4 in MapGUI::create(PluginAPI*, FeatureUISet*, Feature*) sdrangel/plugins/feature/map/mapgui.cpp:66
#6 0x7efe834b5471 in MapPlugin::createFeatureGUI(FeatureUISet*, Feature*) const sdrangel/plugins/feature/map/mapplugin.cpp:72
#7 0x7efeb6b416c2 in FeatureUISet::loadFeatureSetSettings(FeatureSetPreset const*, PluginAPI*, WebAPIAdapterInterface*, QList<Workspace*>*, Workspace*) sdrangel/sdrgui/feature/featureuiset.cpp:185
#8 0x7efeb67e9b41 in MainWindow::loadConfiguration(Configuration const*, bool) sdrangel/sdrgui/mainwindow.cpp:1503
#9 0x7efeb6730e3e in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrangel/sdrgui/mainwindow.cpp:257
#10 0x557281218bad in runQtApplication sdrangel/app/main.cpp:196
#11 0x5572812194a3 in main sdrangel/app/main.cpp:248
#12 0x7efeb10456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
3 years ago
Daniele Forsi
3fb678272d
Fix memleaks found with AddressSanitizer/LeakSanitizer
...
Fixes:
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7efeb72f46b8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
#1 0x7efe834b65a2 in WebServer::WebServer(unsigned short&, QObject*) sdrangel/plugins/feature/map/webserver.cpp:34
#2 0x7efe834bc342 in MapGUI::MapGUI(PluginAPI*, FeatureUISet*, Feature*, QWidget*) sdrangel/plugins/feature/map/mapgui.cpp:265
#3 0x7efe835372f4 in MapGUI::create(PluginAPI*, FeatureUISet*, Feature*) sdrangel/plugins/feature/map/mapgui.cpp:66
#4 0x7efe834b5471 in MapPlugin::createFeatureGUI(FeatureUISet*, Feature*) const sdrangel/plugins/feature/map/mapplugin.cpp:72
#5 0x7efeb6b416c2 in FeatureUISet::loadFeatureSetSettings(FeatureSetPreset const*, PluginAPI*, WebAPIAdapterInterface*, QList<Workspace*>*, Workspace*) sdrangel/sdrgui/feature/featureuiset.cpp:185
#6 0x7efeb67e9b41 in MainWindow::loadConfiguration(Configuration const*, bool) sdrangel/sdrgui/mainwindow.cpp:1503
#7 0x7efeb6730e3e in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrangel/sdrgui/mainwindow.cpp:257
#8 0x557281218bad in runQtApplication sdrangel/app/main.cpp:196
#9 0x5572812194a3 in main sdrangel/app/main.cpp:248
#10 0x7efeb10456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
and others
3 years ago
srcejon
4955e6ab08
Map: Add save to KML. Support MUF/foF2 varying with time. Support VLF transmitters being read from .csv.
3 years ago
srcejon
e0839fce82
Map: Add Spy Server and Kiwi SDR. Add weather and satellite overlays.
3 years ago
f4exb
00b041d762
Rewriting of copyright notices for plugins/features. Part of #1893
3 years ago
Jon Beniston
5567c708e7
Support Map plugin for Qt 6.5. Some Qt 6.6 fixes.
3 years ago
Jon Beniston
22a30b5ea0
Map: Add support for Ionosonde stations
4 years ago
Jon Beniston
29b2941951
Map Updates
...
Fix 3D map for Qt < 5.15.
Add 3D map label scale setting.
Add 3D map time to Web report.
Reduce height of display settings dialog to fit on smaller screens.
5 years ago
Jon Beniston
09eff20a8e
Add missing image and fix Linux compilation warnings
5 years ago
Jon Beniston
97f9835a71
Add 3D Map to Map feature
5 years ago