From: Behdad Esfahbod Date: Thu, 27 May 2010 18:04:15 +0000 (-0400) Subject: Add note about UTF-8 decoder X-Git-Tag: 2.0_alpha~7^2~588 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2163afbf35044f59dbf449254e65b8c9feb6cdeb;p=apps%2Fhome%2Fvideo-player.git Add note about UTF-8 decoder --- diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index c20de77..a393b6b 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -607,6 +607,8 @@ hb_utf8_next (const uint8_t *text, uint8_t c = *text; unsigned int mask, len; + /* TODO check for overlong sequences? also: optimize? */ + UTF8_COMPUTE (c, mask, len); if (unlikely (!len || (unsigned int) (end - text) < len)) { *unicode = -1;