For all binary searches, handle the case where the number of items is 0.
authorOwen Taylor <otaylor@redhat.com>
Thu, 3 Mar 2005 19:38:02 +0000 (19:38 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 3 Mar 2005 19:38:02 +0000 (19:38 +0000)
commit0c349a032e5a52a9d0dcc8204f761b7cb28bfa6b
tree5d9288d580dbc6434a4c6e640504149910df6ba2
parent03838daaa9d485bffcb7bc46453a9a4c32a1f32f
For all binary searches, handle the case where the number of items is 0.

2005-03-03  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/ftxopen.c (Coverage_Index1, Coverage_Index2,
        Get_Class2): For all binary searches, handle the case where
        the number of items is 0. (#162977, Nick Lamb)

        * pango/opentype/ftxgdef.c (TT_GDEF_Build_ClassDefinition):
        Handle the case where glyph_count == 0 properly. Fix a problem
        with cleanups on memory allocation failure.
        (Get_New_Count, Add_Glyph_Property): Avoid reading off the
        end of the ClassRangeRecord array.
src/ftxgdef.c
src/ftxopen.c