[openssl/openssl] 5ad3e7: put_str: Use memcpy instead of strncpy
Tomas Mraz
noreply at reply.github.openssl.org
Thu Jun 23 13:44:44 UTC 2022
Branch: refs/heads/master
Home: https://github.openssl.org/openssl/openssl
Commit: 5ad3e76c23576b2e216463bfe43d005a3e09defc
https://github.openssl.org/openssl/openssl/commit/5ad3e76c23576b2e216463bfe43d005a3e09defc
Author: Tomas Mraz <tomas at openssl.org>
Date: 2022-06-23 (Thu, 23 Jun 2022)
Changed paths:
M crypto/property/property_parse.c
Log Message:
-----------
put_str: Use memcpy instead of strncpy
This fixes a warning from latest gcc.
There is no point in using strncpy here as we
intentionally copy only the string contents without
the terminating NUL. The len is set from strlen().
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18627)
More information about the openssl-commits
mailing list