[HarfBuzz] Potential bug

Peter Hunter phunter at atex.com
Thu Sep 25 21:44:55 PDT 2008


In HarfBuzz-GPOS.c:: Position_CursiveChain
Is this curious sequence

   HB_UInt   i, j;
   HB_Position positions = buffer->positions;

   /* First handle all left-to-right connections */
   for (j = 0; j < buffer->in_length; j--)
   {...}

As j is an unsigned int, this loop can only ever be executed once, surely the j-- should be j++ ?

Peter Hunter



More information about the HarfBuzz mailing list