https://bugs.kde.org/show_bug.cgi?id=498381

            Bug ID: 498381
           Summary: Very slow image parsing in XCF plugin
    Classification: Frameworks and Libraries
           Product: frameworks-kimageformats
           Version: 6.9.0
          Platform: Compiled Sources
                OS: All
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: alex.me...@kde.org
          Reporter: iph...@gmail.com
                CC: aa...@kde.org, kdelibs-b...@kde.org
  Target Milestone: ---

The following file takes 7 seconds to parse.

Reproducer:
```
    const QByteArray data = QByteArray::fromBase64(
       
"AWdpbXAgeGNmAAAwAAoAAABbAAAAAzMAAAAAAAAAAAAAAAYAcAEAAAAAAwAAAAAAAf//////bW1t"
       
"bW1tbW1tbW1tbW1tbW3/////////////bW1tnZ2dnZ2dnZ2dJSFQUy1BZG9iZZ2dnZ2dnZ2dnZ2d"
       
"nZ2dnZ2dnZ2dnXJycnJycnJycnJycnJycnJycnJycnJycnJtfm1tbW1tbW1tAAAAAAAAAAABMQAA"
        "7wYAAAAAAAAAAQAAAAAAAAAAAAAAAAkAAAAJ22M/");

    QImage::fromData(data.mid(1), "XCF");
```

Here's another file that takes over a minute (be sure to remove the first
byte):
```
AWdpbXAgeGNmAAAwAAoAAABbAAAAAzMAAAAAAAAAAAAAAAYAcAEAAAAAAwAAAAAAAf//////bW1t
bW1tbW1tbW1tbW1tbW3/////////////bW1tnZ2dnZ2dnZ2dJSFQUy1BZG9iZZ2dnZ2dnZ2dnZ2d
nZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2d
nZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ1ycnJycnJycnJycnLJcnJy
cnJycnJycnJycnJycnJycnJtfm1tbW1tbW1tAAAAAAAAAAABMgAA7wYAAAAAAAAAAQAAAAAAAAAA
AAAAAAkAAAAJ22M/
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to