Microsoft Bans "memcpy()" and more...

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Microsoft Bans "memcpy()" and more...

Post by Falco Girgis »

:lol:

As I was sipping my morning cup of coffee and sifting through today's issue of "CodeProject," I stumbled upon a pretty interesting article:
Unsafe at any speed: Memcpy() banished in Redmond wrote:Microsoft plans to formally banish the popular programming function that's been responsible for an untold number of security vulnerabilities over the years, not just in Windows but in countless other applications based on the C language. Effective later this year, Microsoft will add memcpy(), CopyMemory(), and RtlCopyMemory() to its list of function calls banned under its secure development lifecycle. [...]
Full article: http://www.theregister.co.uk/2009/05/15 ... es_memcpy/

I totally think that it's a good idea, but gcc can't exactly get RID of memcpy(). Think of all of the embedded processors and old C applications that rely on that and other, similar functions.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Microsoft Bans "memcpy()" and more...

Post by MarauderIIC »

I think "secure development lifecycle" implies internal development practices.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Post Reply