dl-load.c (ld.so) bug??

Daniel Jacobowitz drow at false.org
Tue Jun 22 13:09:21 EST 1999


On Mon, Jun 21, 1999 at 10:48:12PM -0400, Hollis R Blanchard wrote:
> 
> > No. Electric Fence is designed to catch programming errors, such as
> > attempting to access memory which was not 'malloc'ed. I have traced this
> > down extensively a couple of months ago, and found that it does indeed
> > appear to overrun what it malloced.
> 
> I have two even simpler test cases for you:
> 
> int main(void){
>     char *ptr=NULL;
>     free(ptr);
> }

Well, that one would probably segfault anyway (or at least, is not
guaranteed not to).

> int main(void){
>     char *ptr = (char *)malloc(100);
> }        

That one's a problem, though :)

> If this were the case, wouldn't you expect ridiculous levels of instability?

Depends entirely on what it overwrote.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan at debian.org         |  |       dmj+ at andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]





More information about the Linuxppc-dev mailing list