One serious bug in glibc 2.0/2.1
H.J. Lu
hjl@lucon.org
Thu Aug 6 07:30:00 GMT 1998
Hi,
There is one serious bug in glibc 2.0/2.1 in dealing with system
calls. glibc assumes system calls returns int. That may be true on
x86. But it is not always true on alpha where int is 4 byte and
long is 8 byte. Some system calls return long instead of int. Those
system calls are those which return offset or address. At least, lseek
is not handled right on alpha. Return -1 as long turns into -1 as int
which is 0xffffffff in long. We should go over all those system calls
and fix them.
Thanks.
--
H.J. Lu (hjl@gnu.org)
More information about the Libc-hacker
mailing list