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

Ensure that return values of calls to qMalloc()/qRealloc() are checked

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.0
    • 4.3.1
    • Other
    • None

    Description

      Ensure that return values of calls to qMalloc()/qRealloc() are checked, there are some cases where it is not checked if 0 is returned.

      Note: in most cases, there's no graceful failing (such as memory allocation failure during a detaching of implicitly shared data). It might be necessary to throw an exception, which should result in the application exiting as soon as possible (trying to recover will probably result in leaked memory).

      Attachments

        Issue Links

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

          Activity

            People

              tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
              anshaw Andy Shaw (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes