Fix some undefined behaviour in stack test
authorMatt Caswell <matt@openssl.org>
Thu, 16 Mar 2017 17:32:32 +0000 (17:32 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 17 Mar 2017 10:09:46 +0000 (10:09 +0000)
commit3fb2c3e452c9adea24edf8b0b96f6325c0473ee9
tree0f68a2578498632447b3a491aee7dc2483cece10
parent508ee8f5ffc5a3ab1bb10b14c0331393d938326f
Fix some undefined behaviour in stack test

At one point the stack was passing a pointer of the element *before* an
array which is undefined.

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