This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

One serious bug in glibc 2.0/2.1


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]