Bug 130444

Summary: [iOS] WebPDFViewPlaceholder divides-by-zero with an empty document
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebKit Misc.Assignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: sam, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch sam: review+

Tim Horton
Reported 2014-03-18 23:37:44 PDT
If the document consists only of invalid pages, WebPDFViewPlaceholder will divide-by-zero when computing its destination size. WKPDFView will just crash when it hits an invalid page, so we should avoid that as well. <rdar://problem/15580682>
Attachments
patch (5.87 KB, patch)
2014-03-18 23:44 PDT, Tim Horton
no flags
patch (6.32 KB, patch)
2014-03-18 23:45 PDT, Tim Horton
sam: review+
Tim Horton
Comment 1 2014-03-18 23:44:33 PDT
Tim Horton
Comment 2 2014-03-18 23:45:52 PDT
Tim Horton
Comment 3 2014-03-19 08:39:46 PDT
Note You need to log in before you can comment on or make changes to this bug.