Fix a stack smash
authorRich Salz <rsalz@openssl.org>
Mon, 1 May 2017 18:38:49 +0000 (14:38 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 1 May 2017 18:38:49 +0000 (14:38 -0400)
commitee6b68ce4c67870f9323d2a380eb949f447c56ee
treeda777602e876499a062bfe72956a110373a0c091
parent96db26919d5caff2db6340354a026f56dc6f09da
Fix a stack smash

It occurs when memory compares are made that are larger
than the on stack temporary buffers (either malloced or supplied).

Rework the test test so it doesn't use a macro with a branch.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3155)
test/test_test.c
test/testutil/tests.c