ref: 45a3c76b547511fa9d97aca34b150a0663257375
parent: 32dc43a5cc7b24ba2cdf78991fc49b1c6aeb720d
author: Werner Lemberg <[email protected]>
date: Wed Aug 4 11:54:55 EDT 2010
Fix Savannah bug #30644. * src/base/ftstream.c (FT_Stream_EnterFrame): Fix comparison.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2010-08-04 Werner Lemberg <[email protected]>
+ Fix Savannah bug #30644.
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame): Fix comparison.
+
+2010-08-04 Werner Lemberg <[email protected]>
+
`make devel' fails if FT_CONFIG_OPTION_OLD_INTERNALS is set.
* devel/ftoption.h: Synchronize with
--- a/src/base/ftstream.c
+++ b/src/base/ftstream.c
@@ -287,7 +287,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",