]> git.ozlabs.org Git - ccan/commit
crypto/ripemd160: Correct badly sized union member
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 2 Apr 2017 11:21:02 +0000 (21:21 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 5 Apr 2017 05:56:33 +0000 (15:56 +1000)
commited7b9262aafed5df37dd70f0b604536576636056
treead7669e046c01273c50e56d6db9a7c7259615325
parentfb8e88fce366e0379e7f6098183145633a8afeae
crypto/ripemd160: Correct badly sized union member

struct ripemd160_ctx has a union for converting between u8[] and u32[]
data.  Unfortunately the u32 array has a miscalculated size, half the size
of the u8 array.  That means some accesses which are within the union can
technically overrun the u32 array.

Found by Coverity scan.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/crypto/ripemd160/ripemd160.h