[openssl/openssl] bfa5f0: put_str: Use memcpy instead of strncpy
Tomas Mraz
noreply at reply.github.openssl.org
Thu Jun 23 13:45:42 UTC 2022
Branch: refs/heads/openssl-3.0
Home: https://github.openssl.org/openssl/openssl
Commit: bfa5f0f574dbdb82be70586f70975d28512f3554
https://github.openssl.org/openssl/openssl/commit/bfa5f0f574dbdb82be70586f70975d28512f3554
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/18628)
More information about the openssl-commits
mailing list