[sfnt] Fix Savannah bug #43589.
* src/sfnt/sfobjs.c (woff_open_font): Protect against addition overflow.
This commit is contained in:
parent
602040b111
commit
f46add1389
|
@ -1,3 +1,10 @@
|
|||
2014-11-12 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[sfnt] Fix Savannah bug #43589.
|
||||
|
||||
* src/sfnt/sfobjs.c (woff_open_font): Protect against addition
|
||||
overflow.
|
||||
|
||||
2014-11-12 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[sfnt] Fix Savannah bug #43588.
|
||||
|
|
|
@ -567,8 +567,10 @@
|
|||
|
||||
|
||||
if ( table->Offset != woff_offset ||
|
||||
table->Offset + table->CompLength > woff.length ||
|
||||
sfnt_offset + table->OrigLength > woff.totalSfntSize ||
|
||||
table->CompLength > woff.length ||
|
||||
table->Offset > woff.length - table->CompLength ||
|
||||
table->OrigLength > woff.totalSfntSize ||
|
||||
sfnt_offset > woff.totalSfntSize - table->OrigLength ||
|
||||
table->CompLength > table->OrigLength )
|
||||
{
|
||||
error = FT_THROW( Invalid_Table );
|
||||
|
|
Loading…
Reference in New Issue