Bug 178029 - Okular crashes when a CBZ archive has multiple subdirs
Summary: Okular crashes when a CBZ archive has multiple subdirs
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: Comicbook backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 02:28 UTC by Michal Ziabkowski
Modified: 2008-12-20 00:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testcase for CBZ crash (678 bytes, application/octet-stream)
2008-12-18 20:38 UTC, Michal Ziabkowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Ziabkowski 2008-12-18 02:28:01 UTC
Version:            (using KDE 4.1.3)
Compiler:          gcc version 4.1.2 (Gentoo 4.1.2 p1.1) 
OS:                Linux
Installed from:    Compiled From Sources

Okular crashes when a CBZ archive with multiple subdirectories is opened. 

okular(14025) PageView::notifyViewportChanged: viewport for page 0 has no matching item!
KCrash: Application 'okular' crashing...

This doesn't happen when the archive has one directory at top-level. Adding another subdir to a known good archive causes Okular to crash.
Comment 1 Pino Toscano 2008-12-18 20:17:20 UTC
> Okular crashes when a CBZ archive with multiple subdirectories is opened. 

Please provide (either here or directly to me) a testcase for this, thanks.
Comment 2 Michal Ziabkowski 2008-12-18 20:38:02 UTC
Created attachment 29421 [details]
Testcase for CBZ crash

Done. The archive contains two blank jpgs in two separate top-level directories. In fact, the second dir can be empty and the crash still happens.

On a related note, nested subdirs above the first level (dir1/dir2/, /dir1/dir2/dir3/ etc.) aren't parsed at all.
Comment 3 Pino Toscano 2008-12-20 00:04:50 UTC
SVN commit 899134 by pino:

Scan recursively for images in CBZ archives.
BUG: 178029


 M  +16 -9     document.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=899134
Comment 4 Pino Toscano 2008-12-20 00:06:46 UTC
SVN commit 899137 by pino:

Backport: scan recursively for images in CBZ archives.
CCBUG: 178029


 M  +16 -9     document.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=899137