Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61423

Possible null pointer dereference

    XMLWordPrintable

Details

    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            appchecker AppChecker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes