Thread (4 messages) 4 messages, 2 authors, 1999-06-22

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

From: Hollis R Blanchard <hidden>
Date: 1999-06-22 02:48:12

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);
}

and

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

Both of these work fine (or at least *appear* to work fine) without Electric
Fence.
In normal operation, if I am correct, the ld.so code is just silently
overwriting some other data. 
If this were the case, wouldn't you expect ridiculous levels of instability?

-Hollis


[[ 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.   ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help