Bug 41896 - Crash under allScriptsInPDFDocument() in WebPDFDocumentExtras.mm for certain PDFs
Summary: Crash under allScriptsInPDFDocument() in WebPDFDocumentExtras.mm for certain ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: PDF (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.6
: P2 Normal
Assignee: Mike Thole
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-07-08 13:32 PDT by Mike Thole
Modified: 2010-07-08 14:15 PDT (History)
0 users

See Also:


Attachments
Proposed patch (1.35 KB, patch)
2010-07-08 13:38 PDT, Mike Thole
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Thole 2010-07-08 13:32:34 PDT
Certain PDF files can cause a crash under allScriptsInPDFDocument() in WebPDFDocumentExtras.mm.

Sample crash log:

   1 com.apple.CoreFoundation       0x7fff8df5da72 CFDataGetBytePtr + 0x12 (CFInternal.h:602)
   2 com.apple.WebKit               0x7fff95670cb7 allScriptsInPDFDocument(PDFDocument*) + 0x167 (WebPDFDocumentExtras.mm:115)
   3 com.apple.WebKit               0x7fff95670793 -[WebPDFRepresentation finishedLoadingWithDataSource:] + 0x143 (WebPDFRepresentation.mm:129)
   4 com.apple.WebCore              0x7fff93e1b6ec WebCore::FrameLoader::finishedLoadingDocument(WebCore::DocumentLoader*) + 0x30 (FrameLoader.cpp:2732)
   5 com.apple.WebCore              0x7fff93e18538 WebCore::DocumentLoader::finishedLoading() + 0x38 (DocumentLoader.cpp:267)
   6 com.apple.WebCore              0x7fff93eac292 WebCore::FrameLoader::finishedLoading() + 0x48 (ResourceErrorBase.h:40)
   7 com.apple.WebCore              0x7fff93eac1ad WebCore::MainResourceLoader::didFinishLoading() + 0x2f (MainResourceLoader.cpp:424)
Comment 1 Mike Thole 2010-07-08 13:34:01 PDT
<rdar://problem/8105430>
Comment 2 Mike Thole 2010-07-08 13:38:19 PDT
Created attachment 60943 [details]
Proposed patch
Comment 3 Mike Thole 2010-07-08 14:15:51 PDT
Committed revision 62835.