⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242946 in webkit


Ignore:
Timestamp:
Mar 14, 2019, 11:22:04 AM (7 years ago)
Author:
jer.noble@apple.com
Message:

Certain videos are causing a crash when used as WebGL texture
https://bugs.webkit.org/show_bug.cgi?id=195700
<rdar://problem/48869347>

Reviewed by Eric Carlson.

CFEqual is not null-safe, so perform a null and type check before comparing.

  • platform/graphics/cv/VideoTextureCopierCV.cpp:

(WebCore::transferFunctionFromString):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r242943 r242946  
     12019-03-14  Jer Noble  <jer.noble@apple.com>
     2
     3        Certain videos are causing a crash when used as WebGL texture
     4        https://bugs.webkit.org/show_bug.cgi?id=195700
     5        <rdar://problem/48869347>
     6
     7        Reviewed by Eric Carlson.
     8
     9        CFEqual is not null-safe, so perform a null and type check before comparing.
     10
     11        * platform/graphics/cv/VideoTextureCopierCV.cpp:
     12        (WebCore::transferFunctionFromString):
     13
    1142019-03-14  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/cv/VideoTextureCopierCV.cpp

    r233122 r242946  
    100100static TransferFunction transferFunctionFromString(CFStringRef string)
    101101{
     102    if (!string || CFGetTypeID(string) != CFStringGetTypeID())
     103        return TransferFunction::Unknown;
    102104    if (CFEqual(string, kCVImageBufferYCbCrMatrix_ITU_R_709_2))
    103105        return TransferFunction::kITU_R_709_2;
Note: See TracChangeset for help on using the changeset viewer.