openssl/engines
Bernd Edlinger 74f4cc0276 Use OPENSSL_strlcpy instead of strncpy in e_afalg.c
This avoids a spurious gcc warning:
./config enable-asan --strict-warnings
=>
In function 'afalg_create_sk',
    inlined from 'afalg_cipher_init' at engines/e_afalg.c:545:11:
engines/e_afalg.c:376:5: error: '__builtin_strncpy' output may be
    truncated copying 63 bytes from a string of length 63 [-Werror=stringop-truncation]
  376 |     strncpy((char *) sa.salg_name, ciphername, ALG_MAX_SALG_NAME);
      |     ^~~~~~~

[extended tests]

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9478)

(cherry picked from commit 62cc845fc9)
2019-07-30 20:38:50 +02:00
..
asm Update copyright year 2018-03-20 13:08:46 +00:00
build.info Harmonize the make variables across all known platforms families 2018-02-14 17:13:53 +01:00
e_afalg.c Use OPENSSL_strlcpy instead of strncpy in e_afalg.c 2019-07-30 20:38:50 +02:00
e_afalg.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_afalg.h extending afalg with aes-cbc-192/256, afalgtest.c also updated accordingly. comments from matt, Stephen considered 2017-12-08 10:39:52 +00:00
e_afalg.txt Put message strings in state files 2017-06-12 15:03:40 -04:00
e_afalg_err.c make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_afalg_err.h make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_capi.c CAPI engine: add support for RSA_NO_PADDING 2018-09-11 10:27:46 +01:00
e_capi.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_capi.txt Put message strings in state files 2017-06-12 15:03:40 -04:00
e_capi_err.c Put message strings in state files 2017-06-12 15:03:40 -04:00
e_capi_err.h make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_dasync.c Update copyright year 2019-02-26 14:05:09 +00:00
e_dasync.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_dasync.txt Put message strings in state files 2017-06-12 15:03:40 -04:00
e_dasync_err.c Put message strings in state files 2017-06-12 15:03:40 -04:00
e_dasync_err.h make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_ossltest.c Use the TLSv1.3 record header as AAD 2018-03-14 09:51:20 +00:00
e_ossltest.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_ossltest.txt Put message strings in state files 2017-06-12 15:03:40 -04:00
e_ossltest_err.c Put message strings in state files 2017-06-12 15:03:40 -04:00
e_ossltest_err.h make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_padlock.c Update copyright year 2019-05-28 14:49:38 +02:00