ref: b80d85fe9ed3b0cf96d03dcfd7d1e1f149c2b718
parent: a127ca42cadfefa9e71c1cd8a86cc3b9f3768633
author: Werner Lemberg <[email protected]>
date: Wed May 10 00:47:35 EDT 2006
* builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if given an empty, un-mmap()able file. Reported and suggested fix in Savannah bug #16555.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-10 Werner Lemberg <[email protected]>
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if
+ given an empty, un-mmap()able file. Reported and suggested fix in
+ Savannah bug #16555.
+
2006-05-09 Rajeev Pahuja <[email protected]>
* builds/win32/visualc/freetype.sln,
--- a/builds/unix/ftsystem.c
+++ b/builds/unix/ftsystem.c
@@ -303,7 +303,7 @@
stream->base + total_read_count,
stream->size - total_read_count );
- if ( ( read_count == -1 ) )
+ if ( ( read_count <= 0 ) )
{
if ( errno == EINTR )
continue;