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

possible crash when calling qUncompress() with different data (under Windows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 3.x
    • Core: I/O
    • None
    • Qt 4.6 Release Candidate
      OS: Windows 7
      gcc 4.4.0

    Description

      Calling qUncompress() with corrupted data must return empty QByteArray, but ...

      example

      main.cpp
      ...
          QByteArray ba("var Q");
          ba = qUncompress(ba);
      ...
      

      crash with message

      terminate called after throwing an instance of 'std::bad_alloc'
      what(): std::bad_alloc

      This application has requested the Runtime to terminate it in an unusual way.
      Please contact the application's support team for more information.

      many variants of data, it is the shortest that I found.
      under linux(Ubuntu 9.10) this is no problem.

      Attachments

        1. testCompress.zip
          0.5 kB
        2. testCompress.zip
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nierob Nierob
            axax Ax
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes