projects
/
apps
/
home
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
226faa5
)
Add note about UTF-8 decoder
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 27 May 2010 18:04:15 +0000
(14:04 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 27 May 2010 18:04:15 +0000
(14:04 -0400)
src/hb-buffer.cc
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
c20de77
..
a393b6b
100644
(file)
--- 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;