--- freetype-2.3.11/src/base/ftstream.c	2009-08-03 19:51:40.000000000 +0200
+++ freetype-2.3.11/src/base/ftstream.c	2010-09-30 13:46:08.000000000 +0200
@@ -275,7 +275,7 @@
     {
       /* check current and new position */
       if ( stream->pos >= stream->size        ||
-           stream->pos + count > stream->size )
+           stream->size - stream->pos < count )
       {
         FT_ERROR(( "FT_Stream_EnterFrame:"
                    " invalid i/o; pos = 0x%lx, count = %lu, size = 0x%lx\n",
