Bug 455590 - PVS-Studio C++ static code analyzer: two issues
Summary: PVS-Studio C++ static code analyzer: two issues
Status: REPORTED
Alias: None
Product: kalgebra
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-19 07:43 UTC by Marius P
Modified: 2023-10-07 19:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marius P 2022-06-19 07:43:00 UTC
SUMMARY
/home/n/kde/src/education/kalgebra/src/varedit.h	28	warn	V690 The 'Analyzer' class implements a copy constructor, but lacks the copy assignment operator. It is dangerous to use such a class.
/home/n/kde/src/education/kalgebra/src/kalgebra.cpp	375	err	V773 Visibility scope of the 'help' pointer was exited without releasing the memory. A memory leak is possible.


STEPS TO REPRODUCE
1. Build kalgebra using kdesrc-build
2. Install PVS-Studio C++ Linux tgz. 30 days evaluation.
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION

cd ~/kde/build/education/kalgebra
export LD_LIBRARY_PATH=/home/n/kde/usr/lib:/home/n/kde/qt5/lib
export CMAKE_MODULE_PATH=/home/n/kde/qt5/lib/cmake:/home/n/kde/usr/lib64/cmake:/home/n/kde/usr/lib/cmake
export CMAKE_PREFIX_PATH=/home/n/kde/qt5:/home/n/kde/usr
export XDG_DATA_DIRS=/home/n/kde/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop
export PATH=/home/n/kde/usr/bin:/home/n/kde/qt5/bin:/home/n/kde/src/kdesrc-build:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
export PKG_CONFIG_PATH=/home/n/kde/usr/lib/pkgconfig:/home/n/kde/qt5/lib/pkgconfig

cmake -B . -S /home/n/kde/src/education/kalgebra -G Unix\ Makefiles -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS:STRING=-pipe -DCMAKE_INSTALL_PREFIX=/home/n/kde/usr -DCMAKE_PREFIX_PATH=/home/n/kde/qt5

pvs-studio-analyzer trace -- make -j 16
pvs-studio-analyzer analyze -o PVS-Studio.log -j 16
plog-converter -a GA:1,2 -d V1042 -t tasklist -o report.tasks PVS-Studio.log
Comment 1 Marius P 2023-10-07 19:26:49 UTC
Please close this ticket. Thank you.