lkml.org 
[lkml]   [1999]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] strlen
Date
From
> 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...

If you do the start then do aligned loads (always a good idea) on 4 byte
boundaries you wont cross a page by suprise.


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

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.059 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site