From e2ce9d5f37e7370f9f04502427fda26676a7711b Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 8 Apr 2014 20:57:03 +0000 Subject: [PATCH] [NTDLL_APITEST] - Add two test cases for RtlFindClearBits/RtlFindSetBits that crash on ROS svn path=/trunk/; revision=62690 --- rostests/apitests/ntdll/RtlBitmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rostests/apitests/ntdll/RtlBitmap.c b/rostests/apitests/ntdll/RtlBitmap.c index c01795db475..70e0b7afb5c 100644 --- a/rostests/apitests/ntdll/RtlBitmap.c +++ b/rostests/apitests/ntdll/RtlBitmap.c @@ -409,6 +409,8 @@ Test_RtlFindClearBits(void) 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 @@ Test_RtlFindSetBits(void) 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); }