* 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.
This commit is contained in:
Werner Lemberg 2006-05-10 04:47:35 +00:00
parent a127ca42ca
commit b80d85fe9e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-05-10 Werner Lemberg <wl@gnu.org>
* 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 <rpahuja@esri.com>
* builds/win32/visualc/freetype.sln,

View File

@ -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;