[Okular-devel] Review Request 122074: Fix crash when arguments().mimeType() is an invalid mimetype name.

Albert Astals Cid aacid at kde.org
Fri Jan 16 17:08:34 UTC 2015



> On gen. 16, 2015, 4:49 p.m., David Faure wrote:
> > part.cpp, line 1347
> > <https://git.reviewboard.kde.org/r/122074/diff/1/?file=342158#file342158line1347>
> >
> >     Why? we know it's non-null at that point. Did you read line 1341 correctly? We go into the second case if argMime is null.

Ah you're right, didn't read the line above correctly.


- Albert


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122074/#review74145
-----------------------------------------------------------


On gen. 15, 2015, 3:44 p.m., David Faure wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122074/
> -----------------------------------------------------------
> 
> (Updated gen. 15, 2015, 3:44 p.m.)
> 
> 
> Review request for Okular and Albert Astals Cid.
> 
> 
> Repository: okular
> 
> 
> Description
> -------
> 
> I have a JIRA bug report with a PDF attached, and mid-clicking the PDF
> in konqueror leads to opening an okularpart with mimetype="application/x-octet-stream"
> (the x- in there is very unusual, and unknown to shared-mime-info).
> Fixed with null pointer checks.
> 
> 
> Diffs
> -----
> 
>   part.cpp 263f3ad0bd0945590463092df4efdcb9b9515e90 
> 
> Diff: https://git.reviewboard.kde.org/r/122074/diff/
> 
> 
> Testing
> -------
> 
> crashes without the patch, works with the patch.
> 
> 
> Do I need to manually apply this to master or frameworks, or do you merge regularly?
> 
> 
> Thanks,
> 
> David Faure
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20150116/c2239f2d/attachment.html>


More information about the Okular-devel mailing list