[Webkit-unassigned] [Bug 210911] Nullptr crash in objc_msgSend under WebCore::genericFamily

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 23 17:50:47 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=210911

--- Comment #5 from Anders Carlsson <andersca at apple.com> ---
(In reply to Darin Adler from comment #4)
> Comment on attachment 397335 [details]
> patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=397335&action=review
> 
> >> Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:253
> >> +        auto value = adoptCF(CTFontDescriptorCopyAttribute(descriptor.get(), kCTFontFamilyNameAttribute));
> > 
> > Can use dynamic_cf_cast here.
> > 
> > https://trac.webkit.org/browser/webkit/trunk/Source/WTF/wtf/cf/TypeCastsCF.h
> 
> Or checked_cf_cast, since we know what the type is supposed to be

Wouldn't that just cause a different crash though?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200424/d7c3094e/attachment.htm>


More information about the webkit-unassigned mailing list