Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.0
-
None
-
c7ea60d1abd65d5c85fc5e690a28935c9b4a2dec
Description
Hi.
Please look this code fragment:
if (!pixmap() && !pixmap()->isNull()) return pixmap()->size();
if pixmap() returns NULL, !pixmap() will be true, si pixmap()->isNull() will be executed.
Probably, it should be:
if (pixmap() && !pixmap()->isNull()) return pixmap()->size();
This possible defect found by AppChecker
Attachments
For Gerrit Dashboard: QTBUG-61423 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
197512,2 | QWizard: Fix null pointer dereference if no pixmap was set | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |