diff options
Diffstat (limited to '0005-memcpy-fix.patch')
-rw-r--r-- | 0005-memcpy-fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/0005-memcpy-fix.patch b/0005-memcpy-fix.patch new file mode 100644 index 000000000000..3bbf27c2170e --- /dev/null +++ b/0005-memcpy-fix.patch @@ -0,0 +1,15 @@ +diff -Naur a/src/psaux/psobjs.c b/src/psaux/psobjs.c +--- a/src/psaux/psobjs.c 2014-11-25 02:48:48.000000000 -0500 ++++ b/src/psaux/psobjs.c 2015-04-21 18:31:03.106092062 -0400 +@@ -182,6 +182,11 @@ + return FT_THROW( Invalid_Argument ); + } + ++ if ( length < 0 ) { ++ FT_ERROR(( "ps_table_add: invalid length\n" )); ++ return PSaux_Err_Invalid_Argument; ++ } ++ + /* grow the base block if needed */ + if ( table->cursor + length > table->capacity ) + { |