~ubuntu-branches/ubuntu/saucy/pango1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to pango/opentype/hb-ot-layout-gpos-private.hh

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2010-10-19 23:37:45 UTC
  • mfrom: (1.5.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20101019233745-xey8xlf91rpkth51
Tags: 1.28.3-1
* New upstream stable release.
  + Fixes SIGFPE in opentype renderer. Closes: #598166.

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
  inline bool sanitize (SANITIZE_ARG_DEF, unsigned int cols) {
338
338
    TRACE_SANITIZE ();
339
339
    if (!SANITIZE_SELF ()) return false;
 
340
    if (rows > 0 && cols >= ((unsigned int) -1) / rows) return false;
340
341
    unsigned int count = rows * cols;
341
342
    if (!SANITIZE_ARRAY (matrix, matrix[0].get_size (), count)) return false;
342
343
    for (unsigned int i = 0; i < count; i++)