]> git.ipfire.org Git - thirdparty/openssl.git/commit
cmp.c: Avoid dereference with negative index and use memcpy
authorTomas Mraz <tomas@openssl.org>
Wed, 13 Oct 2021 07:00:31 +0000 (09:00 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 25 Oct 2021 13:01:42 +0000 (15:01 +0200)
commit767db672c429aeb98a68b0e310dea15f1b48eb84
treed32e178eb6163c1cd0e0dfbc33ce55b5c041b376
parent7e35458b511f042d9a37d49227b01096c444e575
cmp.c: Avoid dereference with negative index and use memcpy

This prevents a compile-time warning on newer gcc.

Also fix the related warning message.

Fixes #16814

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16821)
apps/cmp.c