New Defects reported by Coverity Scan for krita
scan-admin at coverity.com
scan-admin at coverity.com
Fri Feb 3 22:34:19 GMT 2023
Hi,
Please find the latest report on new defect(s) introduced to krita found with Coverity Scan.
1 new defect(s) introduced to krita found with Coverity Scan.
77 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 435734: (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 435734: (FORWARD_NULL)
/home/tymon/kritadev/krita/plugins/dockers/advancedcolorselector/kis_color_selector_ng_dock.cpp: 31 in KisColorSelectorNgDock::setCanvas(KoCanvasBase *)()
25 }
26
27 void KisColorSelectorNgDock::setCanvas(KoCanvasBase * canvas)
28 {
29 setEnabled(canvas != 0);
30 KisCanvas2* kisCanvas = dynamic_cast<KisCanvas2*>(canvas);
>>> CID 435734: (FORWARD_NULL)
>>> Passing null pointer "kisCanvas" to "setCanvas", which dereferences it.
31 m_colorSelectorNgWidget->setCanvas(kisCanvas);
32 }
33
34 void KisColorSelectorNgDock::unsetCanvas()
35 {
36 setEnabled(false);
37 m_colorSelectorNgWidget->unsetCanvas();
/home/tymon/kritadev/krita/plugins/dockers/advancedcolorselector/kis_color_selector_ng_dock.cpp: 31 in KisColorSelectorNgDock::setCanvas(KoCanvasBase *)()
25 }
26
27 void KisColorSelectorNgDock::setCanvas(KoCanvasBase * canvas)
28 {
29 setEnabled(canvas != 0);
30 KisCanvas2* kisCanvas = dynamic_cast<KisCanvas2*>(canvas);
>>> CID 435734: (FORWARD_NULL)
>>> Passing null pointer "kisCanvas" to "setCanvas", which dereferences it.
31 m_colorSelectorNgWidget->setCanvas(kisCanvas);
32 }
33
34 void KisColorSelectorNgDock::unsetCanvas()
35 {
36 setEnabled(false);
37 m_colorSelectorNgWidget->unsetCanvas();
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yoiVvSSc0Ywjss83d7yOEUgcCB0VGS755ZaA-2FhoVtwbuw-3D-3D8TA8_9IaX5f-2FHpKL9E6YDsrt7GXrayr4Tk6CKCUhJvkNHrt4NsMgHTPrSMAN3LiTk6Zen5NKviEZUKORE5ldkSb-2B9yFanEzV4mFLsBdCnTM8lctuphhZrMmacyQc6-2FzMR28C-2BKVW3kS4zcOI4Erud9vsHbv7wqttjxnQLbQys29ltYcZVdKE1VLAEv4YFQX8k5-2F3gLnPWHruZ-2FIxAKoMcogAY4w-3D-3D
More information about the kimageshop
mailing list