projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7115b6
)
Fix hb_buffer_set_length(buffer, 0)
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 29 Oct 2012 03:11:47 +0000
(20:11 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 29 Oct 2012 03:11:47 +0000
(20:11 -0700)
Was causing invalid realloc()s.
src/hb-buffer.cc
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
2f8f511
..
b65beff
100644
(file)
--- a/
src/hb-buffer.cc
+++ b/
src/hb-buffer.cc
@@
-71,7
+71,7
@@
hb_buffer_t::enlarge (unsigned int size)
if (unlikely (_hb_unsigned_int_mul_overflows (size, sizeof (info[0]))))
goto done;
- while (size > new_allocated)
+ while (size >
=
new_allocated)
new_allocated += (new_allocated >> 1) + 32;
ASSERT_STATIC (sizeof (info[0]) == sizeof (pos[0]));