Commit Graph

25 Commits

Author SHA1 Message Date
Michał Janiszewski 3d5d8903b8 ntdll: Prevent Find{Set, Clear}Run from reading past the end of bitmap.
This can be happen in sample arrays (hex):
FindSetRun:   00 00 00 00 00 00 00 ff
FindClearRun: ff ff ff ff ff ff ff 00

Signed-off-by: Michał Janiszewski <janisozaur@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-10 22:09:32 +02:00
Michał Janiszewski a1ed500836 ntdll: Only set owned bits in RTL_BITMAP.
Signed-off-by: Michał Janiszewski <janisozaur@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-03 11:22:26 +02:00
Nikolay Sivov 86df15cbf1 ntdll: Trace RTL_BITMAP api arguments as unsigned when appropriate.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 21:54:35 +01:00
Michael Stefaniuc abef6ab366 ntdll: Avoid TRUE:FALSE conditional expressions. 2012-08-14 11:58:40 +02:00
Aleksey Bragin 4f74de5b36 ntdll: Fix buffer overread in RtlNumberOfSetBits. 2009-01-07 12:20:58 +01:00
Aleksey Bragin a8a97091fe ntdll: Fix memory corruption in RtlSetBits. 2008-12-27 20:22:46 +01:00
Francois Gouget e723395617 ntdll: Remove WINAPI on static functions where not needed. 2008-11-28 12:54:32 +01:00
Hans Leidekker f7b0ba7aa7 ntdll: Win64 printf format warning fixes. 2006-10-18 12:35:26 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard 7c1925a0f3 Remove the 'L' suffix on a number of constants to avoid comparison
errors on 64-bit platforms.
2005-09-13 15:00:32 +00:00
Mike McCormack 04f9f1b066 Don't include winbase.h or winerror.h when not necessary. 2005-06-21 09:52:40 +00:00
Mike McCormack 5b2d5fd758 Use HANDLE instead of HKEY in the NT API. 2005-06-17 13:58:33 +00:00
Jon Griffiths eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Jon Griffiths 49e13df700 Remove unneeded headers to reduce unneeded rebuilds. 2004-12-17 19:09:29 +00:00
Jon Griffiths bf5539bbe6 Documentation updates. 2004-09-13 18:04:31 +00:00
Francois Gouget 61d21ce706 Update RTL_BITMAP and RTL_BITMAP_RUN to match the 2000 DDK.
Only test the Rtl{Initialize,SetAll,ClearAll}Bits macros if they are
defined.
2004-08-23 18:52:54 +00:00
Eric Pouech db52588754 Const correctness. 2004-06-15 00:47:00 +00:00
Alexandre Julliard 2ae6f4bd24 Fixed bitmap range checking to avoid integer overflows. 2003-11-29 00:23:23 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Francois Gouget f803e2a92d Fix miscellaneous spelling errors and typos. 2003-05-13 00:41:57 +00:00
Andreas Mohr 114b667f41 Some spelling and formatting fixes. 2003-04-02 01:23:43 +00:00
Alexandre Julliard b5d8f532db Rewrote RtlFind{Most,Least}SignificantBit in a more portable way. 2003-03-07 23:15:52 +00:00
Thomas Mertes 38012942f8 - Fix small bug in RtlFindMostSignificantBit. It returned sometimes
wrong results if more then one bit was set.
- Update the test cases as well.
2003-02-18 23:22:49 +00:00
Patrik Stridvall 9c1de6de30 Moved all the content of the DDK files ntdef.h and ntddk.h to
winternl.h.
2002-09-12 22:07:02 +00:00
Jon Griffiths 1da297178a Implement and test rtl bitmap functions.
Add a couple of other misc rtl functions.
2002-08-15 22:08:40 +00:00