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

Changeset 259774 in webkit


Ignore:
Timestamp:
Apr 8, 2020, 6:10:13 PM (6 years ago)
Author:
ddkilzer@apple.com
Message:

WebKit::ShareableBitmap::Handle::decode() should validate m_size instance variables
<https://webkit.org/b/210211>
<rdar://problem/60543986>

Reviewed by Alex Christensen.

  • Shared/ShareableBitmap.cpp:

(WebKit::ShareableBitmap::Handle::decode): Return early if
either m_size instance variable is less than zero.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r259772 r259774  
     12020-04-08  David Kilzer  <ddkilzer@apple.com>
     2
     3        WebKit::ShareableBitmap::Handle::decode() should validate m_size instance variables
     4        <https://webkit.org/b/210211>
     5        <rdar://problem/60543986>
     6
     7        Reviewed by Alex Christensen.
     8
     9        * Shared/ShareableBitmap.cpp:
     10        (WebKit::ShareableBitmap::Handle::decode): Return early if
     11        either m_size instance variable is less than zero.
     12
    1132020-04-08  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WebKit/Shared/ShareableBitmap.cpp

    r253987 r259774  
    5555    if (!decoder.decode(handle.m_size))
    5656        return false;
     57    if (handle.m_size.width() < 0 || handle.m_size.height() < 0)
     58        return false;
    5759    if (!decoder.decode(handle.m_configuration))
    5860        return false;
Note: See TracChangeset for help on using the changeset viewer.