HarfBuzz text shaping engine
Go to file
Behdad Esfahbod 29b596ac67 [uniscribe] Fix buffer allocation
Email from Jonathan Kew:

My cygwin build kept aborting on certain test words when run with the
uniscribe backend. Turned out this was caused by a bug in the allocation
of scratch buffers in hb-uniscribe.cc.

Commit 2a17f9568d introduced a new line

  ALLOCATE_ARRAY (SCRIPT_VISATTR, vis_attr, glyphs_size);

but it failed to account for this in the computation of glyphs_size
(the number of glyphs for which scratch buffer space is available),
with the result that the vis_clusters array ends up overrunning the
end of the scratch buffer and clobbering the beginning of the buffer's
info[].

AFAICS, the vis_attr array is not actually used, so the simple fix is
to remove the line that allocates it. (If/when we -do- need to use
vis_attr for something, we'll need to add another term to the earlier
calculation of glyphs_size.)

With this patch, the uniscribe backend runs reliably again.

JK
2013-07-08 08:37:15 -06:00
contrib Minor 2012-08-12 17:11:27 -04:00
m4 Add ax_pthread.m4 2012-10-02 14:46:34 -04:00
src [uniscribe] Fix buffer allocation 2013-07-08 08:37:15 -06:00
test Fix misc warnings reported by cppcheck 2013-06-10 15:08:49 -04:00
util Fix misc warnings reported by cppcheck 2013-06-10 15:08:49 -04:00
.travis.yml [travis] Install libicu 2013-03-11 20:18:49 -04:00
AUTHORS Bump version to 0.9.2 2012-08-10 14:50:05 -04:00
Android.mk [buffer] Move buffer serialization code to a new file 2013-02-27 18:49:05 -05:00
COPYING Improve license information 2012-10-28 21:26:19 -07:00
Makefile.am Fix ChangeLog regen 2013-05-30 18:04:24 -04:00
NEWS 0.9.18 2013-05-28 17:28:59 -04:00
README Update README, etc 2011-05-25 15:40:49 -04:00
THANKS Bump version to 0.9.2 2012-08-10 14:50:05 -04:00
TODO Update TODO 2013-05-29 15:30:54 -04:00
autogen.sh Revert "[Indic] Import ragel-generated Indic machine in git" 2013-02-06 23:43:27 -05:00
configure.ac Fix PKG_CHECK_MODULES usage 2013-06-10 13:57:25 -04:00
git.mk [git.mk] Update 2013-04-11 13:38:37 -04:00
harfbuzz.doap Minor 2011-05-27 04:14:42 -04:00

README

This is HarfBuzz, a text shaping library.

For bug reports, mailing list, and other information please visit:

  http://harfbuzz.org/

For license information, see the file COPYING.