mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
1998-06-08 13:34 Ulrich Drepper <drepper@cygnus.com> * elf/sprof.c: Implement call graph profiling. * sysdeps/generic/getenv.c: Optimize to use strncmp less often. 1998-06-07 Andreas Jaeger <aj@arthur.rhein-neckar.de> * pwd/fgetpwent_r.c (__fgetpwent_r): Correct buffer overflow fix. * grp/fgetgrent_r.c (__fgetgrent_r): Likewise. * shadow/fgetspent_r.c (__fgetspent_r): Likewise. Noticed by Jake Garver <garver@valkyrie.net>. 1998-06-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * libio/genops.c (__underflow): Read character from read pointer as unsigned. (__uflow): Likewise.
This commit is contained in:
@@ -273,7 +273,7 @@ __underflow (fp)
|
||||
{
|
||||
_IO_switch_to_main_get_area (fp);
|
||||
if (fp->_IO_read_ptr < fp->_IO_read_end)
|
||||
return *fp->_IO_read_ptr;
|
||||
return *(unsigned char *) fp->_IO_read_ptr;
|
||||
}
|
||||
if (_IO_have_markers (fp))
|
||||
{
|
||||
@@ -298,7 +298,7 @@ __uflow (fp)
|
||||
{
|
||||
_IO_switch_to_main_get_area (fp);
|
||||
if (fp->_IO_read_ptr < fp->_IO_read_end)
|
||||
return *fp->_IO_read_ptr++;
|
||||
return *(unsigned char *) fp->_IO_read_ptr++;
|
||||
}
|
||||
if (_IO_have_markers (fp))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user