PVS-Studio Analysis Results


Date:Wed Oct 20 09:48:35 2021
PVS-Studio Version:7.15.53134.163
Command Line:plog-converter -a GA\:1,2 -t fullhtml -o ../website/build/QAppImageUpdate/PVSStudioAnalysis project.log
Total Warnings (GA):21
Group Location Level Code Message
General Analysis QAppImageUpdateTests.hpp:29 Medium V779 Unreachable code detected. It is possible that an error is present.
General Analysis appimageupdateinformation_p.cc:613 High V575 The null pointer is passed into 'read' function. Inspect the second argument.
General Analysis helpers_p.cc:13 Medium V547 Expression is always false.
General Analysis qappimageupdate_p.cc:248 Medium V1048 The 'b_Running' variable was assigned the same value.
General Analysis qappimageupdate_p.cc:248 Medium V1048 The 'b_Started' variable was assigned the same value.
General Analysis qappimageupdate_p.cc:548 Medium V1048 The 'b_Canceled' variable was assigned the same value.
General Analysis qappimageupdate_p.cc:964 Medium V519 The 'b_Canceled' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 962, 964.
General Analysis qappimageupdate_p.cc:1087 Medium V519 The 'b_Canceled' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1085, 1087.
General Analysis qappimageupdate_p.cc:1136 Medium V636 The 'bytesReceived / 1048576' expression was implicitly cast from 'long long' type to 'double' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part. An example: double A = (double)(X) / Y;.
General Analysis qappimageupdate_p.cc:1137 Medium V636 The 'bytesTotal / 1048576' expression was implicitly cast from 'long long' type to 'double' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part. An example: double A = (double)(X) / Y;.
General Analysis rangedownloader_p.cc:76 Medium V1048 The 'b_Running' variable was assigned the same value.
General Analysis rangedownloader_p.cc:6 High V730 Not all members of a class are initialized inside the constructor. Consider inspecting: n_RecievedBytes.
General Analysis seeder_p.cc:79 Medium V1048 The 'b_Running' variable was assigned the same value.
General Analysis torrentdownloader_p.cc:110 Medium V1048 The 'b_Running' variable was assigned the same value.
General Analysis zsyncwriter_p.cc:235 Medium V701 realloc() possible leak: when realloc() fails in allocating memory, original pointer 'r' is lost. Consider assigning realloc() to a temporary pointer.
General Analysis zsyncwriter_p.cc:236 Medium V522 There might be dereferencing of a potential null pointer 'r'. Check lines: 236, 235.
General Analysis zsyncwriter_p.cc:712 Medium V519 The 'b_Started' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 702, 712.
General Analysis zsyncwriter_p.cc:1036 Medium V547 Expression '!(constructed = true)' is always false.
General Analysis zsyncwriter_p.cc:1240 High V1028 Possible overflow. Consider casting operands of the 'x + n_Context' operator to the 'size_t' type, not the result.
General Analysis zsyncwriter_p.cc:1285 High V1028 Possible overflow. Consider casting operands of the 'x + n_Context' operator to the 'size_t' type, not the result.
General Analysis zsyncwriter_p.cc:1618 High V1028 Possible overflow. Consider casting operands of the 'bto - bfrom + 1' operator to the 'off_t' type, not the result.