GNOME Bugzilla – Bug 316469
Incorrect bounds check in hangul-fc.c
Last modified: 2005-11-23 15:33:20 UTC
The bounds check in hangul_engine_shape() needs to make sure there are 3 free spaces in the jamos[] array because it might write three elements there. But it only checks that there is 1 free space. (if (n_jamos == max_jamos)). It should check if (n_jamos > max_jamos - 3). Reported by Steve Grubb.
2005-11-23 Behdad Esfahbod <behdad@gnome.org> * modules/hangul/hangul-fc.c (hangul_engine_shape): Fix incorrect bounds check. (#316469, Steve Grubb) Moreover, increase max_jamos eight at a time instead of three.