Lines 1561-1566
Link Here
|
1561 |
|
1561 |
|
1562 |
p->glyph_enc = _bdf_atol( p->list.field[1], 0, 10 ); |
1562 |
p->glyph_enc = _bdf_atol( p->list.field[1], 0, 10 ); |
1563 |
|
1563 |
|
|
|
1564 |
/* Check that the encoding is in the range [0,65536] because */ |
1565 |
/* otherwise p->have (a bitmap with static size) overflows. */ |
1566 |
if ( p->glyph_enc >= sizeof(p->have)*8 ) |
1567 |
{ |
1568 |
error = BDF_Err_Invalid_File_Format; |
1569 |
goto Exit; |
1570 |
} |
1571 |
|
1564 |
/* Check to see whether this encoding has already been encountered. */ |
1572 |
/* Check to see whether this encoding has already been encountered. */ |
1565 |
/* If it has then change it to unencoded so it gets added if */ |
1573 |
/* If it has then change it to unencoded so it gets added if */ |
1566 |
/* indicated. */ |
1574 |
/* indicated. */ |