Bug 165596

Summary: Trying to open a passworded cbr (rar compressed comicbook) hangs okular
Product: [Applications] okular Reporter: Jochen Radmacher <jradmacher>
Component: Comicbook backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: some kde icons as passworded cbr, password: test

Description Jochen Radmacher 2008-07-02 22:38:01 UTC
Version:           0.6.80 (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.3 
OS:                Linux

When trying to open a passworded cbr file, Okular hangs with a blank white Window.
Comment 1 Jochen Radmacher 2008-07-02 22:39:36 UTC
Created attachment 25794 [details]
some kde icons as passworded cbr, password: test
Comment 2 Pino Toscano 2008-07-07 09:33:27 UTC
SVN commit 828998 by pino:

On UNIX, make use of a pty process instead of a normal process, as unrar opens pty connections for getting passwords.
In other cases, when getting password requests via stderr, just kill the process and return with a failure code:
the proper solution would be handling the password request, but this is a non-trivial task that require some more work.

Thus, for now, just do not allow password-protected RARs to be opened.
BUG: 165596


 M  +3 -0      CMakeLists.txt  
 M  +77 -22    unrar.cpp  
 M  +12 -1     unrar.h  


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