WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
213035
Crash growing a CFData with incremental PDF loading
https://bugs.webkit.org/show_bug.cgi?id=213035
Summary
Crash growing a CFData with incremental PDF loading
Brady Eidson
Reported
2020-06-10 11:27:31 PDT
Crash growing a CFData with incremental PDF loading <
rdar://problem/63670403
>
Attachments
Patch
(1.55 KB, patch)
2020-06-10 14:43 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Patch
(1.66 KB, patch)
2020-06-10 14:47 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2020-06-10 14:43:21 PDT
Created
attachment 401584
[details]
Patch
Alex Christensen
Comment 2
2020-06-10 14:44:52 PDT
Comment on
attachment 401584
[details]
Patch Shouldn't we call CFDataIncreaseLength right after this?
Brady Eidson
Comment 3
2020-06-10 14:45:39 PDT
(In reply to Alex Christensen from
comment #2
)
> Comment on
attachment 401584
[details]
> Patch > > Shouldn't we call CFDataIncreaseLength right after this?
We do (Read the whole function)
Brady Eidson
Comment 4
2020-06-10 14:46:46 PDT
(In reply to Brady Eidson from
comment #3
)
> (In reply to Alex Christensen from
comment #2
) > > Comment on
attachment 401584
[details]
> > Patch > > > > Shouldn't we call CFDataIncreaseLength right after this? > > We do (Read the whole function)
NM - Incomplete patch uploaded.
Brady Eidson
Comment 5
2020-06-10 14:47:28 PDT
Created
attachment 401585
[details]
Patch
Darin Adler
Comment 6
2020-06-10 14:54:44 PDT
Comment on
attachment 401585
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=401585&action=review
> Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:1628 > + m_data = adoptCF(CFDataCreateMutable(0, 0));
Should be "nullptr, 0". But don’t have to do that in this patch.
Brady Eidson
Comment 7
2020-06-10 15:05:02 PDT
(In reply to Darin Adler from
comment #6
)
> Comment on
attachment 401585
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=401585&action=review
> > > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:1628 > > + m_data = adoptCF(CFDataCreateMutable(0, 0)); > > Should be "nullptr, 0". But don’t have to do that in this patch.
A followup will actually move off CFData to NSData, per the advice of experts
EWS
Comment 8
2020-06-10 15:23:40 PDT
Committed
r262864
: <
https://trac.webkit.org/changeset/262864
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 401585
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug