]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 5 Aug 1999 18:20:47 +0000 (18:20 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 5 Aug 1999 18:20:47 +0000 (18:20 +0000)
1999-08-05  Ulrich Drepper  <drepper@cygnus.com>

* libio/genops.c (_IO_flush_all): Don't access elements beyond what
2.0 defined if they are not available.

ChangeLog
libio/genops.c

index bd3d6a8fe83756ab8e8822e014f1ea29ab6be86e..cc18f0dedbed4f4de48d8b54f194089535b12931 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-08-05  Ulrich Drepper  <drepper@cygnus.com>
+
+       * libio/genops.c (_IO_flush_all): Don't access elements beyond what
+       2.0 defined if they are not available.
+
 1999-08-05  Thorsten Kukuk  <kukuk@suse.de>
 
        * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_RSYNC, O_DSYNC):
index a8f34463ad6c5a3e63c0ca078f79ebcdb95b8799..07dc4e81ddb6d3ed05585d3cf8b8083f97e572d5 100644 (file)
@@ -742,8 +742,9 @@ _IO_flush_all ()
   _IO_FILE *fp;
   for (fp = _IO_list_all; fp != NULL; fp = fp->_chain)
     if (((fp->_mode < 0 && fp->_IO_write_ptr > fp->_IO_write_base)
-        || (fp->_mode > 0 && (fp->_wide_data->_IO_write_ptr
-                              > fp->_wide_data->_IO_write_base)))
+        || (fp->_vtable_offset == 0
+            && fp->_mode > 0 && (fp->_wide_data->_IO_write_ptr
+                                 > fp->_wide_data->_IO_write_base)))
        && _IO_OVERFLOW (fp, EOF) == EOF)
       result = EOF;
   return result;