diff options
author | Werner Lemberg <wl@gnu.org> | 2008-11-25 05:44:41 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2008-11-25 05:44:41 +0000 |
commit | 0a263a8b3130c0156a9851f1224a63938be0adef (patch) | |
tree | 1db4cae1e05c72b165f06513499cacd9687876e5 | |
parent | 52cd0fc8b9a76b4bee8d4fab7aa0409a85900970 (diff) |
* src/base/ftstream.c (FT_Stream_ReadFields): Don't access stream
before the NULL check. From Savannah patch #6681.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/base/ftstream.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2008-11-25 Daniel Zimmermann <netzimme@aol.com> + + * src/base/ftstream.c (FT_Stream_ReadFields): Don't access stream + before the NULL check. From Savannah patch #6681. + 2008-11-24 Werner Lemberg <wl@gnu.org> Fixes from the gnuwin32 port. diff --git a/src/base/ftstream.c b/src/base/ftstream.c index 569e46c7..cff67e0e 100644 --- a/src/base/ftstream.c +++ b/src/base/ftstream.c @@ -707,12 +707,13 @@ { FT_Error error; FT_Bool frame_accessed = 0; - FT_Byte* cursor = stream->cursor; - + FT_Byte* cursor; if ( !fields || !stream ) return FT_Err_Invalid_Argument; + cursor = stream->cursor; + error = FT_Err_Ok; do { |