Unsolved Static Analysis Report
-
Hello,
I ran the static analysis tool on my code. Since my code includes Qt libraries, it also analyses the header files. Tool has caught couple of warnings from the Qt sources.
I am using Qt 4.8.
Any thoughts if these are harmful? Should I need to get them fixed? if yes, how?CL.MLK.ASSIGN: Possible memory leak in class 'QDebug'. Dynamic memory stored in 'stream' can be lost. : C and C++ : qdebug.h : Warning (3) : Analyze : Local CWARN.BITOP.SIZE: Operands in a bitwise operation have different size : C and C++ : qglobal.h : Review (4) : Analyze : Local CWARN.BITOP.SIZE: Operands in a bitwise operation have different size : C and C++ : qglobal.h : Review (4) : Analyze : Local CWARN.MEM.NONPOD: Memory manipulation routine 'memcpy' is applied to a non-POD object : C and C++ : qvector.h : Review (4) : Analyze : Local CWARN.MEM.NONPOD: Memory manipulation routine 'memcpy' is applied to a non-POD object : C and C++ : qlist.h : Review (4) : Analyze : Local
Thanks,
Kumara -
Hi,
AFAIK:
- stream is handled properly
- sign extension must be taken into account when using the flag bitwise operator
- IIRC, memcopy is used on classes that can be copied through it
As for fixes of Qt 4, AFAIK only security fixes will get in.