compilation issue in Windows(Visual studio) due to memcpy_s #1331
Unanswered
jagaKarthi22
asked this question in
Q&A
Replies: 1 comment
-
I have no really opinion on "I think we want the C11 It sounds like we just need better detection logic for determining those platforms. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
memset_s function is introduced in below commit.
30170d6
But memset_s is not available in windows API. This causes compilation in Visual studio to break.
The previous implementation to securely zero out memory(Volatile pointer with memset) will do the same as memset_s function. ie.) Compiler won't optimize operations made on volatile data.
Can we revert back to memset (with volatile pointer) ?
Beta Was this translation helpful? Give feedback.
All reactions