]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix instances of pointer addition with the NULL pointer
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 25 Aug 2021 12:30:12 +0000 (14:30 +0200)
committerNicola Tuveri <nic.tuv@gmail.com>
Fri, 27 Aug 2021 11:54:08 +0000 (14:54 +0300)
commite93a82da60f52e6fc799323b99499ee51e8c7215
tree231431163ea0fce7c9dbd15478a2f2423a3a78eb
parent58e1e397c6774be11b903c0f88e85bd2b8c4206f
Fix instances of pointer addition with the NULL pointer

ubsan found undefined pointer addtions in
crypto/bio/bss_mem.c (mem_ctrl),
crypto/pem/pem_lib.c (PEM_read_bio_ex),
test/testutil/format_output.c (test_fail_string_common,
test_fail_memory_common).

Mostly a straight back-port-of: a07dc81

Additionally enable the ubsan run-checker, to prevent regressions.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/16423)
.github/workflows/run-checker-merge.yml
crypto/bio/bss_mem.c
crypto/pem/pem_lib.c
test/testutil/format_output.c