summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/freetype2-static/freetype-2.2.1-memcpy-fix.patch
blob: 67a1c0775841dd19f97a69b92e0cbd4da473de25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- freetype-2.2.1/src/psaux/psobjs.c~	2006-04-26 16:38:17.000000000 +0200
+++ freetype-2.2.1/src/psaux/psobjs.c	2006-09-10 15:01:13.000000000 +0200
@@ -165,6 +165,11 @@
       return PSaux_Err_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 )
     {