[ros-kernel] CHECKPOINT

Royce Mitchell III royce3 at ev1.net
Fri May 21 20:40:49 CEST 2004


Vizzini wrote:

>IIRC, Royce implemented redzone violation detection on allocation of 0
>bytes... it's been about 9 months tho so my memory might be off.
>
> -Vizzini
>
>On Fri, 2004-05-21 at 09:53, Hartmut Birr wrote:
>  
>
>>Hi,
>>
>>there is a definition of CHECKPOINT in ntoskrnl\include\internal\debug.h
>>line #102 which contains a call 'ExAllocatePool(NonPagedPool,0)'. Does
>>anyone know why CHECKPOINT calls ExAllocatePool?
>>
>>- Hartmut 
>>
>>_______________________________________________
>>Ros-kernel mailing list
>>Ros-kernel at reactos.com
>>http://reactos.com/mailman/listinfo/ros-kernel
>>
>>    
>>
>
>_______________________________________________
>Ros-kernel mailing list
>Ros-kernel at reactos.com
>http://reactos.com/mailman/listinfo/ros-kernel
>
>.
>
>  
>
Now that you mention it, that sounds familiar. Allocating 0 bytes is a 
noop anyways, so the function call is harmless. We used that to "signal" 
a check to see if the paged pool redzone had been violated. Since it 
served it's purpose and found the bug we were looking for, I'm sure it 
can be removed now, especially since the redzone code in paged pool is 
now disabled by default.

-- 
------------------------
http://wecanstopspam.org



More information about the Ros-kernel mailing list