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

[REG 6.2.3 -> dev] Loading any .ico file leaks memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.4
    • Image formats
    • None
    • Ubuntu 20.04
      clang 10.0.0

    Description

      1. Configure qtbase with "-sanitize address" and build it.
      2. Build the attached project.
        qt-cmake /tmp/report/ && cmake --build .
        
      3. Run the resulting binary passing any .ico file as parameter:
        ./report ~/dev/src/qtbase/tests/auto/gui/image/qimage/images/image.ico
        

        ASAN will report a memory leak:

        =================================================================
        ==55235==ERROR: LeakSanitizer: detected memory leaks
        
        Direct leak of 60 byte(s) in 1 object(s) allocated from:
            #0 0x494b0d in malloc (/tmp/build-report/report+0x494b0d)
            #1 0x7fe9e68a50c5  (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xe0c5)
        
        SUMMARY: AddressSanitizer: 60 byte(s) leaked in 1 allocation(s).
        

      Attachments

        1. CMakeLists.txt
          0.3 kB
        2. main.cpp
          0.2 kB

        Issue Links

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

          Activity

            People

              vgt Eirik Aavitsland
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes