Memcpy() in secure programming?

前端 未结 10 2103
天命终不由人
天命终不由人 2020-12-08 16:34

I recently stumbled across an article that claims Microsoft is banning the memcpy() function in its secure programming shops. I understand the vulnerabilities i

10条回答
  •  醉话见心
    2020-12-08 16:43

    You are supposed to use memcpy_s() instead. The same kind of _s versions exist for a variety of other functions considered as unsecure.

提交回复
热议问题