RtlCopyMemory() Vs Memcpy() - Follow up

Hello There,

Following this old thread http://www.osronline.com/showthread.cfm?link=242667, it seems that altough we were complying with what required, and used “RtlCopyMemory” rather than memcpy, now (Windows next) this API (RtlCopyMemory) is banned and we should move on to memcpy_s(). I think it would have been better if they just change RtlCopyMemory macro but bottom line, now you should not even use RtlCopyMemory in kernel code.

http://blogs.microsoft.com/cybertrust/2009/05/14/please-join-me-in-welcoming-memcpy-to-the-sdl-rogues-gallery/

Thanks!

Alon

You make statements on RtlCopyMemory based on memcpy in user space. I’ve
never seen a memcpy_s in kernel code, so before making a claim like that
please point to a Microsoft reference for memcpy_s in the kernel, and that
RtlCopyMemory is deprecated.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Wednesday, December 31, 2014 3:42 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] RtlCopyMemory() Vs Memcpy() - Follow up

Hello There,

Following this old thread
http://www.osronline.com/showthread.cfm?link=242667, it seems that altough
we were complying with what required, and used “RtlCopyMemory” rather than
memcpy, now (Windows next) this API (RtlCopyMemory) is banned and we should
move on to memcpy_s(). I think it would have been better if they just change
RtlCopyMemory macro but bottom line, now you should not even use
RtlCopyMemory in kernel code.

http://blogs.microsoft.com/cybertrust/2009/05/14/please-join-me-in-welcoming
-memcpy-to-the-sdl-rogues-gallery/

Thanks!

Alon


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer