mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
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.
This commit is contained in:
@@ -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>
|
1999-08-05 Thorsten Kukuk <kukuk@suse.de>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_RSYNC, O_DSYNC):
|
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_RSYNC, O_DSYNC):
|
||||||
|
@@ -742,8 +742,9 @@ _IO_flush_all ()
|
|||||||
_IO_FILE *fp;
|
_IO_FILE *fp;
|
||||||
for (fp = _IO_list_all; fp != NULL; fp = fp->_chain)
|
for (fp = _IO_list_all; fp != NULL; fp = fp->_chain)
|
||||||
if (((fp->_mode < 0 && fp->_IO_write_ptr > fp->_IO_write_base)
|
if (((fp->_mode < 0 && fp->_IO_write_ptr > fp->_IO_write_base)
|
||||||
|| (fp->_mode > 0 && (fp->_wide_data->_IO_write_ptr
|
|| (fp->_vtable_offset == 0
|
||||||
> fp->_wide_data->_IO_write_base)))
|
&& fp->_mode > 0 && (fp->_wide_data->_IO_write_ptr
|
||||||
|
> fp->_wide_data->_IO_write_base)))
|
||||||
&& _IO_OVERFLOW (fp, EOF) == EOF)
|
&& _IO_OVERFLOW (fp, EOF) == EOF)
|
||||||
result = EOF;
|
result = EOF;
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user