Changeset 72209 in webkit for trunk/JavaScriptCore/ChangeLog


Ignore:
Timestamp:
Nov 17, 2010, 8:36:04 AM (15 years ago)
Author:
[email protected]
Message:

<http://webkit.org/b/49634> Make overflow guards in WTF::String::utf8 explicit

Reviewed by Darin Adler.

Add an explicit overflow check prior to allocating our buffer,
rather than implicitly relying on the guard in convertUTF16ToUTF8.

  • wtf/text/WTFString.cpp:

(WTF::String::utf8):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r72207 r72209  
     12010-11-17  David Kilzer  <[email protected]>
     2
     3        <http://webkit.org/b/49634> Make overflow guards in WTF::String::utf8 explicit
     4
     5        Reviewed by Darin Adler.
     6
     7        Add an explicit overflow check prior to allocating our buffer,
     8        rather than implicitly relying on the guard in convertUTF16ToUTF8.
     9
     10        * wtf/text/WTFString.cpp:
     11        (WTF::String::utf8):
     12
    1132010-11-17  Sheriff Bot  <[email protected]>
    214
Note: See TracChangeset for help on using the changeset viewer.