Re: OFF-Topic glibc behavior

grant@torque.net
Wed, 21 Oct 1998 15:50:39 -0400 (EDT)


> The following code will write "Hello World!" to the screen on
> the following platforms:

On the screen or in /tmp/foo ???

> Glibc doesn't check the contents of the FILE structures, just
> the addresses and since it "knows" the pointer received was not
> one it provided, it generates signal 11 on its own.

Is this the simplest explanation ? Seems to me that the FILE structure
could contain (directly or indirectly) a self-referential pointer.
Moving it would certainly break something ...

But what does this have to do with the kernel ?

--------------------------------------------------------------------------
Grant R. Guenther grant@torque.net
--------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/