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

Incomplete JPEG writing after libjpeg-turbo 3.0.0 upgrade

    XMLWordPrintable

Details

    • macOS
    • 071291a0d (dev), 6173f053a (6.6), b548c93c2 (tqtc/lts-6.5), 318315806 (tqtc/lts-6.2), 2b00e5a82 (tqtc/lts-5.15)

    Description

      There is a bug in libjpeg-turbo 3.0.0 where not all data is written when `WITH_SIMD` is not defined. I think to encounter the bug it must be a 64-bit platform without NEON extensions. Because it is related to an uninitialized variable, it doesn't occur 100% of the time, but it can result in a truncated JPEG file.

      Opening the file afterward results in `Corrupt JPEG data: premature end of data segment` warnings and a small amount of missing data at the end of the file (usually manifests as a small rectangle of grey in the corner of the image).

      I have reported the libjpeg-turbo issue here:

      https://github.com/libjpeg-turbo/libjpeg-turbo/issues/728

      Attachments

        Issue Links

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

          Activity

            People

              vgt Eirik Aavitsland
              benkerby Ben Kerby
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes