-
mario@webkit.org authored
Reviewed by Martin Robinson. [GTK] Reliable crash with getTextAtOffset() https://bugs.webkit.org/show_bug.cgi?id=53131 Properly calculate length in bytes for a UTF8 substring. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: (utf8Substr): Use character instead of bytes as units to calculate the length in bytes for the UTF8 string. 2011-01-26 Mario Sanchez Prada <msanchez@igalia.com> Reviewed by Martin Robinson. [GTK] Reliable crash with getTextAtOffset() https://bugs.webkit.org/show_bug.cgi?id=53131 New unit test to check the fix for this bug. * tests/testatk.c: (testWebkitAtkGetTextAtOffsetWithSpecialCharacters): New. (main): Add new unit test. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1ce6fd18