Branch: Tag:

2015-04-20

2015-04-20 17:36:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Image.Font: Fixed range check. Fixes [CID 742685].

431:       for (i=0; i<num_chars; i++)    { -  if (i*sizeof(INT32)<(size_t)size +  if ((i*sizeof(INT32) + OFFSETOF(file_head, o))<(size_t)size    && ntohl(fh->o[i])<(size_t)size    && ! ( ntohl(fh->o[i]) % 4) ) /* must be aligned */    {