bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault in stat


From: Roland McGrath
Subject: Re: segfault in stat
Date: Mon, 2 Oct 2000 16:07:01 -0400 (EDT)

> Doesn't this trouble you?  Why is there "undefined behavior" anywhere
> in libc or the kernel?  IMNSHO, this is totally unacceptable.  

libc and the kernel are very different.  There is always undefined behavior
possible in libc, for example any time a program clobbers some random part
of its address space it might cause weird things to happen in libc.  Using
bad addresses is undefined within the context of the process.  A "bad
address" might be a valid address of some inappropriate part of memory, and
changing that memory produces unpredictable results.  A bad address that is
truly inaccessible produces a signal (SIGSEGV or SIGBUS).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]