Fix a -Warray-bounds gcc warning in OPENSSL_DIR_read
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 3 Nov 2019 16:34:23 +0000 (17:34 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 9 Nov 2019 09:51:43 +0000 (10:51 +0100)
commiteb67b2616c737fba2cb1207f70d3ecd003844705
treecb5eab75e60dbb350c85690658fd701918d6b49d
parent30bd3e51600b53ec0a2df2d952bf2624309f3952
Fix a -Warray-bounds gcc warning in OPENSSL_DIR_read

'__builtin_strncpy' offset [275, 4095] from the object at
'direntry' is out of the bounds of referenced subobject 'd_name'
with type 'char[256]' at offset 19

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10343)

(cherry picked from commit db5cf86535b305378308c58c52596994e1ece1e6)
crypto/LPdir_unix.c