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

QImageReader fails to read a bmp image if the datastream is a large file (4GB+) (in QBMPHandler)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 2
    • 5.8.0
    • Image formats
    • None

    Description

      The code attached (main.cpp) shows the issue. I have a proposed fix that I'll posted in gerrit

      Result of run before bugfix:

      Seeking to  0
      Wrote from  0  to  2038
      Reading from  0
      Read from  0  to  2038
      Seeking to  2147483647
      Wrote from  2147483647  to  2147485685
      Reading from  2147483647
      Read from  2147483647  to  2147485685
      Seeking to  4294967295
      Wrote from  4294967295  to  4294969333
      Reading from  4294967295
      Read from  4294967295  to  2037
      ASSERT: "tempFile.pos() > pos" in file ..\QImageReaderTest\main.cpp, line 42
      Press <RETURN> to close this window...
      

      Result after fix:

      Seeking to  0
      Wrote from  0  to  2038
      Reading from  0
      Read from  0  to  2038
      Seeking to  2147483647
      Wrote from  2147483647  to  2147485685
      Reading from  2147483647
      Read from  2147483647  to  2147485685
      Seeking to  4294967295
      Wrote from  4294967295  to  4294969333
      Reading from  4294967295
      Read from  4294967295  to  4294969333
      Done
      Press <RETURN> to close this window...
      

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            hendrickmelo Hendrick Melo
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes