Bonkers

Peter Corlett abuse at cabal.org.uk
Mon May 14 14:44:14 BST 2007


On Mon, May 14, 2007 at 02:34:28PM +0100, David Cantrell wrote:
[...]
> Oh, I figgered out what's wrong with it. Memory allocated read-only for
> paranoid reasons?

It's not so much "allocated read-only for paranoid reasons" but that the
string constant is in the code section of the executable. The code section
is normally mapped read-only and executable.

A quick peek at the contents of /proc/<pid>/maps can be educational.



More information about the london.pm mailing list