Re: Unexecutable Stack / Buffer Overflow Exploits...

Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Wed, 5 Jan 2000 13:44:11 +0000 (GMT)


On Tue, 4 Jan 2000, Pavel Machek wrote:

> Why not map _everything_ mapped to address containing 0x00?

That saves you from stupid strcpy() bugs, but so small amount of
problems look like:

u16 buf[16]; /* big enough */
...
recv(fd, &mystruct, sizeof(mystruct), ..);
memcpy(buf, mystruct.buffer, mystruct.len);

Matthew.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/