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:
075d671
)
Leave one extra item at the end of buffer allocation
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 18 Jul 2012 19:43:55 +0000
(15:43 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 18 Jul 2012 19:43:55 +0000
(15:43 -0400)
Just in case, for the times we do out-of-bounds access.
jk
src/hb-buffer-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-buffer-private.hh
b/src/hb-buffer-private.hh
index
9bd80e0
..
e06a7fa
100644
(file)
--- a/
src/hb-buffer-private.hh
+++ b/
src/hb-buffer-private.hh
@@
-148,7
+148,7
@@
struct hb_buffer_t {
HB_INTERNAL bool enlarge (unsigned int size);
inline bool ensure (unsigned int size)
- { return likely (size <
=
allocated) ? true : enlarge (size); }
+ { return likely (size < allocated) ? true : enlarge (size); }
HB_INTERNAL bool make_room_for (unsigned int num_in, unsigned int num_out);