Author: tfaber
Date: Tue Apr 8 20:57:03 2014
New Revision: 62690
URL:
http://svn.reactos.org/svn/reactos?rev=62690&view=rev
Log:
[NTDLL_APITEST]
- Add two test cases for RtlFindClearBits/RtlFindSetBits that crash on ROS
Modified:
trunk/rostests/apitests/ntdll/RtlBitmap.c
Modified: trunk/rostests/apitests/ntdll/RtlBitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/RtlBitmap.…
==============================================================================
--- trunk/rostests/apitests/ntdll/RtlBitmap.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/RtlBitmap.c [iso-8859-1] Tue Apr 8 20:57:03 2014
@@ -409,6 +409,8 @@
ok_int(RtlFindClearBits(&BitMapHeader, 5, 64), 20);
ok_int(RtlFindClearBits(&BitMapHeader, 9, 28), 27);
ok_int(RtlFindClearBits(&BitMapHeader, 10, 0), -1);
+ Buffer[1] = 0xFF303F30;
+ ok_int(RtlFindClearBits(&BitMapHeader, 1, 56), 1);
FreeGuarded(Buffer);
}
@@ -457,6 +459,7 @@
ok_int(RtlFindSetBits(&BitMapHeader, 5, 64), 20);
ok_int(RtlFindSetBits(&BitMapHeader, 6, 57), 40);
ok_int(RtlFindSetBits(&BitMapHeader, 7, 0), -1);
+ ok_int(RtlFindSetBits(&BitMapHeader, 1, 62), 1);
FreeGuarded(Buffer);
}