[ros-kernel] Can someone give me a hand in here
Skywing
skywing at valhallalegends.com
Wed Dec 17 19:48:54 CET 2003
You must never read past the terminating null, *especially* in kernel mode.
If the string is on a page boundary, that could cause a crash.
The only registers that you don't need to save (on x86) are eax, ecx, and
edx.
-----Original Message-----
From: ros-kernel-bounces at reactos.com [mailto:ros-kernel-bounces at reactos.com]
On Behalf Of Waldo Alvarez
Sent: Wednesday, December 17, 2003 1:21 PM
To: ReactOS Kernel List
Subject: [ros-kernel] Can someone give me a hand in here
Hello:
I was changing this file in ROS to speedup strlen but ReactOS
crashes with a page fault very quick since strlen is used almost
everywhere. But I'm not used to this kind of assembler format. Can someone
take a look at it. It could read at most 3 bytes beyond the ending 0 in
the string but i don't think it could be a problem since the page size is
4 kb the other reason could be the ebx register I'm not saving. as opposed
to the previous function.
Thanks in advance
Waldo Alvarez
More information about the Ros-kernel
mailing list