![]() |
![]() |
|
September 08, 2003Arggggggggggggggggg!I AM SICK OF UNICODE_STRING POINTERS AND THE LACK OF USEFUL STRING FUNCTIONS IN KERNEL - MODE RUNTIME LIBRARIES.!! Enough said. You can now go back to your regularly scheduled program. Posted by SilverStr at September 8, 2003 09:27 PMComments
Tell us how you really feel! Is the availability of useful libs any better in the linux kernel? Posted by: Arcterex at September 8, 2003 10:48 PMThe kernels differ considerably when you deal with the internal APIs. In Linux using things like kmalloc/kfree and printk are quite easy, as you use raw chunks of data, with the system throwing around simple pointers. In Windows kernel though, most of the time the data being thrown around is in a UNICODE_STRING format which is actually a pointer to a struct holding a Buffer and a Length field. But thats survivable, its easy to deal with. I am tired of rolling my frigging routines that really should be available in the kernel. Simple things like strtok and strpbrk. In the Windows kernel, you use their API which typically start Rtl*. As an example, to copy memory you would use the RtlCopyMemory function. But here is the trick. All they did was map a #define of RtlCopyMemory to memcpy! (You can actually see this if you have a copy of ntddk.h hanging around) But calling memcpy is against the rules. *sigh* What happened to the good ol' days where a byte was a byte, not a word. When a char* was your friend and life was grand. When you knew that pointer math always worked the way you wanted it, not only SOMETIMES when its a wide char pointer and not an ansi one. *sigh* I can't really bitch... its my burden to bare. I just hate wasting time writing perfectly good routines that have existed for eons in the world of C. (Don't get me going on the bit shifting crap I had to do just to get an inet_ntoa function in the kernel) Time to check in my code and go to bed. Posted by: SilverStr at September 9, 2003 12:30 AM |
![]() ![]()
My 5 Favorite Books
Writing Secure Code
Secure Programming Cookbook Security Engineering Secure Coding Principles & Practice Inside the Security Mind ![]()
My 5 Favorite Papers
Smashing the Stack
Penetration Studies Covert Channel Analysis of Trusted Systems DoD Trusted Computer System Evaluation Criteria NSA Security Recommendation Guides ![]()
Archives
December 2005
November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 ![]() |
|