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

Re: [Sheflug] Re: [Sheflug - Sheffield Linux User's Group] Re: Segfaults & ld.so wierditude



> I was under the impression that a segfault was given when an instruction
> tries to write to a piece of memory it's not allowed to. Surely I'm not
> allowed to write over malloc()'s hosuekeeping data?

The ability to protect memory relies on the facilities of the memory management
unit, which normally works in units of pages or more. So it doesnt
have the fine-grained ability mark the 4 bytes of housekeeping just before a 
10-byte malloc() (say)



---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.