openssl/ssl
Patrick Steuer c19e6da9a3 Appease -Werror=stringop-overflow=
gcc 10 seems to think of assigning to an (unsigned) char
array as a stringop and demands additional space for a
terminating '\0':

In function 'ssl3_generate_key_block',
    inlined from 'ssl3_setup_key_block' at ssl/s3_enc.c:304:11:
ssl/s3_enc.c:51:20: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
   51 |             buf[j] = c;
      |             ~~~~~~~^~~
ssl/s3_enc.c: In function 'ssl3_setup_key_block':
ssl/s3_enc.c:23:19: note: at offset 16 to object 'buf' with size 16
declared here
   23 |     unsigned char buf[16], smd[SHA_DIGEST_LENGTH];
      |                   ^~~

Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12632)
2020-08-13 21:32:29 +02:00
..
record Update copyright year 2020-07-16 14:47:04 +02:00
statem Add EVP signature with libctx methods. 2020-08-09 17:34:52 +10:00
bio_ssl.c Update copyright year 2020-05-15 14:09:49 +01:00
build.info Add provider support for TLS CBC padding and MAC removal 2020-07-06 09:26:09 +01:00
d1_lib.c Reorganize local header files 2019-09-28 20:26:35 +02:00
d1_msg.c Reorganize local header files 2019-09-28 20:26:35 +02:00
d1_srtp.c Update copyright year 2020-05-15 14:09:49 +01:00
methods.c Update some inclusions of <openssl/macros.h> 2019-11-07 11:37:25 +01:00
pqueue.c Reorganize local header files 2019-09-28 20:26:35 +02:00
s3_cbc.c unify spelling of serialize 2020-07-30 20:15:22 +10:00
s3_enc.c Appease -Werror=stringop-overflow= 2020-08-13 21:32:29 +02:00
s3_lib.c Add X509 related libctx changes. 2020-07-24 22:53:27 +10:00
s3_msg.c Reorganize local header files 2019-09-28 20:26:35 +02:00
ssl_asn1.c Explicitly test against NULL; do not use !p or similar 2019-10-09 21:32:15 +02:00
ssl_cert_table.h Following the license change, modify the boilerplates in ssl/ 2018-12-06 14:20:59 +01:00
ssl_cert.c Add X509 related libctx changes. 2020-07-24 22:53:27 +10:00
ssl_ciph.c deprecate engines in SSL 2020-07-16 09:12:27 +02:00
ssl_conf.c Add X509 related libctx changes. 2020-07-24 22:53:27 +10:00
ssl_err.c Provider a better error message if we fail to copy parameters 2020-06-19 10:19:32 +01:00
ssl_init.c Providerized libssl fallout: cleanup init 2020-07-11 15:13:09 -07:00
ssl_lib.c Avoid segfault in SSL_export_keying_material if there is no session 2020-08-13 10:17:10 +02:00
ssl_local.h Convert SSLv3 handling to use provider side CBC/MAC removal 2020-07-06 09:26:09 +01:00
ssl_mcnf.c Update copyright year 2020-08-06 13:22:30 +01:00
ssl_rsa.c Add X509 related libctx changes. 2020-07-24 22:53:27 +10:00
ssl_sess.c deprecate engines in SSL 2020-07-16 09:12:27 +02:00
ssl_stat.c Reorganize local header files 2019-09-28 20:26:35 +02:00
ssl_txt.c Update copyright year 2020-04-23 13:55:52 +01:00
ssl_utst.c Reorganize local header files 2019-09-28 20:26:35 +02:00
t1_enc.c Add EVP signature with libctx methods. 2020-08-09 17:34:52 +10:00
t1_lib.c Revert "The EVP_MAC functions have been renamed for consistency. The EVP_MAC_CTX_*" 2020-07-16 14:21:07 +02:00
t1_trce.c t1_trce: Fix remaining places where the 24 bit shift overflow happens 2020-05-20 17:31:56 +02:00
tls13_enc.c Revert "kdf: make function naming consistent." 2020-07-16 14:21:07 +02:00
tls_srp.c Update copyright year 2020-04-23 13:55:52 +01:00