lopgoo.blogg.se

Stellarium software made easy
Stellarium software made easy












stellarium software made easy
  1. #Stellarium software made easy code#
  2. #Stellarium software made easy license#

The code could be rewritten as follows: int i = 0 If so, the break statement is not necessary either. I think that the programmer forgot to add the assignment start_of_directory = pos in the signature check. It doesn't look like the loop is going to run forever because it has a return and break in it, but it still looks suspicious.

stellarium software made easy

This condition is always true as the start_of_directory variable does not change inside the loop body. The problem is in the condition of the while loop. PVS-Studio diagnostic message: V654 The condition 'start_of_directory = - 1' of loop is always true. To make it more entertaining, I recommend that in every case (starting with this one) you try to find the bug yourself first and only then read the analyzer warning and my comments: void QZipReaderPrivate::scanFiles()ĭevice->read((char *)&eod, sizeof(EndOfDirectory)) Get yourself a coffee and a croissant and sit back: we are getting to the most interesting part of our articles - overview of the bugs reported by the analyzer! Suspicious conditions I hope you will learn something new from this article, while the authors of Stellarium will fix some of the bugs and, therefore, make the project better. The answer is, I am one of the developers of PVS-Studio, and the unicorn is our dear playful mascot. New readers and Stellarium users are probably wondering why I mentioned a unicorn in the title and what it has to do with code analysis. Since it is built with Qt Creator, I used the compiler-launch tracking mechanism, a special feature of the Standalone version of PVS-Studio. First, I downloaded Stellarium's source code from GitHub and then installed all software packages required to build the project. It supports Windows, Linux, and macOS and is designed for developers who care about improving the code's quality. This is a tool to detect bugs and potential vulnerabilities in programs written in C, C++, and C# (Java support is coming soon!). The project was analyzed with the static code analyzer PVS-Studio. A number of other developers have contributed to the development of Stellarium, especially Robert Spearman, Johannes Gajdosik, Matthew Gates, Nigel Kerr, and Johan Meuris, the latter of whom is responsible for the artwork.and the analyzer Currently, Stellarium is being maintained and developed by Alexander Wolf, Georg Zotti, Marcos Cardinot, Guillaume Chéreau, Bogdan Marinov, Timothy Reaves, Ferdinand Majerech, and Jörg Müller. Stellarium was created by the French programmer Fabien Chéreau, who launched the project in the summer of 2001 (17 years ago). All versions use OpenGL to render a realistic projection of the night sky in real time. A port Stellarium called Stellarium Mobile is available for Android, iOS, and Symbian as a paid version, being developed by Noctua Software.

#Stellarium software made easy license#

According to the Wikipedia page, Stellarium is an open-source free-software planetarium, licensed under the terms of the GNU General Public License version 2, available for Linux, Windows, and macOS.














Stellarium software made easy