This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
One serious bug in glibc 2.0/2.1
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: One serious bug in glibc 2.0/2.1
- From: hjl@lucon.org (H.J. Lu)
- Date: Thu, 6 Aug 1998 07:30:49 -0700 (PDT)
- Cc: rth@cygnus.com, libc-hacker@cygnus.com (GNU C Library)
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)