Changeset 12505 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jan 31, 2006, 3:38:48 PM (19 years ago)
Author:
tomernic
Message:

Reviewed by Geoff Garen.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r12489 r12505  
     12006-01-31  Tim Omernick  <[email protected]>
     2
     3        Reviewed by Geoff Garen.
     4
     5        * bindings/c/c_utility.cpp:
     6        (KJS::Bindings::convertUTF8ToUTF16):
     7        Fixed an invalid assertion that UTF8Chars is not NULL.  It is valid for it to be NULL as long as
     8        UTF8Length is 0.
     9        This fixes an assertion failure on TOT at <http://www.musicindiaonline.com/p/x/tJO0OOBME9.As1NMvHdW/>,
     10        where JavaScript is getting a NULL string back from some call on the Real Player plugin.
     11
    1122006-01-30  Anders Carlsson  <[email protected]>
    213
  • trunk/JavaScriptCore/bindings/c/c_utility.cpp

    r12426 r12505  
    4444void convertUTF8ToUTF16(const NPUTF8 *UTF8Chars, int UTF8Length, NPUTF16 **UTF16Chars, unsigned int *UTF16Length)
    4545{
    46     assert(UTF8Chars);
     46    assert(UTF8Chars || UTF8Length == 0);
    4747   
    4848    if (UTF8Length == -1)
Note: See TracChangeset for help on using the changeset viewer.