mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-26 03:54:30 -04:00
0659f264aa5cdce46b71a05fb201c8cacf83aa8d
Initialize the coordinate and bearing variables used by VORModel::findIntersection() and declare the validity flags as bool. Coverity reported that lat1, lon1, bearing1, lat2, lon2, and bearing2 could be passed uninitialized to calcIntersectionPoint(). While the current control flow is intended to assign these values before the corresponding validity flag is set, they were not initialized at declaration, leaving undefined behavior if that invariant were ever broken. Initializing the variables removes the possibility of using indeterminate values, satisfies static analysis, and makes the code more robust against future modifications. The validity flags are also changed from float to bool to match their intended use. Signed-off-by: Robin Getz <rgetz503@gmail.com>
SDRangel is an open-source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Wiki: Most of the information and documentation related to SDRangel can be found in the 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 and Quick Start pages.
Discussion group: You can ask other users for help or discuss subjects related to SDRangel and its ancillary projects here.
Ancillary projects
- SDRangelcli is a web application that can be used to control a headless (server flavor) instance of SDRangel. It can also be used as a remote control for the GUI flavor.
- SDRangel-Docker is a collection of Docker files and scripts to facilitate building and running SDRangel in a Docker container. Works for either the GUI (only on a Linux host) or the server.
Languages
C++
69.8%
JavaScript
27.5%
CMake
0.9%
C
0.8%
Python
0.3%
Other
0.6%
