CVSROOT: /cvs/gnome Module name: pango Changes by: otaylor 05/07/26 14:08:13
Modified files: . : Tag: pango-1-8 ChangeLog pango : Tag: pango-1-8 ellipsize.c pango-attributes.c pango-glyph-item.c pango-layout.c Log message: 2005-07-26 Owen Taylor <[EMAIL PROTECTED]> Fixes for signed/unsigned in PangoAttrIterator ((#166700, Morten Welinder) * pango/pango-attributes.c (pango_attr_iterator_range): Clamp results to G_MAXINT to avoid negative numbers from signed/unsigned conversions. * pango/pango-attributes.c: Make PangoAttrIterator start_index/end_index unsigned to match PangoAttribute. Change various local variables to match. * pango/ellipsize.c (advance_iterator_to) pango/pango-attributes.c (pango_attr_iterator_range) pango/pango-glyph-item.c (pango_glyph_item_apply_attrs) pango/pango-layout.c (pango_layout_line_get_empty_extents): Always check the return value from pango_attr_iterator() to deal with potential infinite loops when trying to advance to position G_MAXINT. * pango/pango-layout.c (pango_layout_set_text): Handle the case where the text passed in is longer than than G_MAXINT and length < 0. * pango/pango-attributes.c (pango_attr_list_splice): Be careful about integer overflow - clamp addition. (#163246, Morten Welinder) URL : http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=pango&who=otaylor&date=explicit&mindate=2005-07-26%2014:07&maxdate=2005-07-26%2014:09 _______________________________________________ cvs-commits-list mailing list cvs-commits-list@gnome.org http://mail.gnome.org/mailman/listinfo/cvs-commits-list