Don't call memcpy with NULL as source
authorKurt Roeckx <kurt@roeckx.be>
Thu, 15 Dec 2016 19:23:52 +0000 (20:23 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Thu, 15 Dec 2016 20:45:25 +0000 (21:45 +0100)
commiteeab356c298248108b82157ef51172ba040646f7
tree08787dba1cf5bb3fe5ea0b935d31310e58b3f5d5
parent1ea01427c5195dafa4f00202237c5b7a389f034b
Don't call memcpy with NULL as source

Calling it with lenght 0 and NULL as source is undefined behaviour.

Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #2089
crypto/bn/bn_intern.c