* Ignore negative indices in font data.

This commit is contained in:
Sam Hocevar 2006-11-06 17:39:42 +00:00 committed by sam
parent 374627e287
commit 4af6e12627

View file

@ -202,6 +202,14 @@ static int open_font(context_t *cx)
if(buf[0] == '\n' || buf[0] == '\r')
continue;
/* Ignore negative indices for now, as in ivrit.flf */
if(buf[0] == '-')
{
for(j = 0; j < cx->height; j++)
toigets(buf, 2048, f);
continue;
}
if(!buf[0] || buf[0] < '0' || buf[0] > '9')
{
free(data);