Re: [PATCH] strlen

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Fri, 29 Oct 1999 00:36:40 +0200


Arjan van de Ven wrote:
> This, I think, is a problem on i386. You _cannot_ read beyond the end of the
> string (might be on an other, unmapped page), but you don't know that until
> you do, when doing 4 bytes at a time. I mean: You can only know that you
> went to far...

To be more precise, you can do the 4 bytes at a time thing so long as
you make sure each load is aligned, or do something special at page
boundaries.

-- Jamie

-
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/

-
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/