Does the runtime library provided with Embedded Studio for ARM have a secure version of mempcy (similar to memcpy_s in Visual Studio)?
Russ
Does the runtime library provided with Embedded Studio for ARM have a secure version of mempcy (similar to memcpy_s in Visual Studio)?
Russ
Hello Russ,
Thank you for your inquiry.
memcpy_s is a Microsoft extension to the standard library,
there is no pendant to it in teh SEGGER Runtime Library.
If required, we would recommend implementing a wrapper to memcpy()
with all required security checks needed.
Best regards,
Nino
Hello Nino,
memcpy_s is standardized with C11, same with strcpy_s. I think it would be helpful to have this functions supported by ES.
regards
Hello,
memcpy_s is standardized with C11, same with strcpy_s.
Yes and no. Only the function name and parameters are defined. Not the function implementation itself.
To best of our knowledge this is not implemented in standardlibs like glibc etc. either.
We found only the implementation from Microsoft which OP references.
So if you need the functionality now we recommend to write your own wrapper function for it.
We will add it on our feature wish list but can't promise anything at this point.
Best regards,
Nino
Don’t have an account yet? Register yourself now and be a part of our community!