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

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

XMLWordPrintable

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

      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).

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes