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

Changeset 243575 in webkit


Ignore:
Timestamp:
Mar 27, 2019, 4:43:46 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r242946. rdar://problem/49308005

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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242946 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/Source/WebCore/ChangeLog

    r243574 r243575  
     12019-03-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r242946. rdar://problem/49308005
     4
     5    Certain videos are causing a crash when used as WebGL texture
     6    https://bugs.webkit.org/show_bug.cgi?id=195700
     7    <rdar://problem/48869347>
     8   
     9    Reviewed by Eric Carlson.
     10   
     11    CFEqual is not null-safe, so perform a null and type check before comparing.
     12   
     13    * platform/graphics/cv/VideoTextureCopierCV.cpp:
     14    (WebCore::transferFunctionFromString):
     15   
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2019-03-14  Jer Noble  <jer.noble@apple.com>
     20
     21            Certain videos are causing a crash when used as WebGL texture
     22            https://bugs.webkit.org/show_bug.cgi?id=195700
     23            <rdar://problem/48869347>
     24
     25            Reviewed by Eric Carlson.
     26
     27            CFEqual is not null-safe, so perform a null and type check before comparing.
     28
     29            * platform/graphics/cv/VideoTextureCopierCV.cpp:
     30            (WebCore::transferFunctionFromString):
     31
    1322019-03-27  Alan Coon  <alancoon@apple.com>
    233
  • branches/safari-607-branch/Source/WebCore/platform/graphics/cv/VideoTextureCopierCV.cpp

    r233122 r243575  
    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.