Buffer overflow for m_state in class IteratedHashWithStaticTransform

10 views
Skip to first unread message

Boris Zanin

unread,
Apr 12, 2012, 2:30:53 AM4/12/12
to Crypto++ Users
Hi All,

It looks like a wrong memory size was allocated for m_state member-
variable in IteratedHashWithStaticTransform. Currently it is

FixedSizeAlignedSecBlock<T_HashWordType, T_BlockSize/
sizeof(T_HashWordType), T_StateAligned> m_state;

and as I think it should be

FixedSizeAlignedSecBlock<T_HashWordType, T_StateSize/
sizeof(T_HashWordType), T_StateAligned> m_state;

Thank you.
Boris Zanin.
Reply all
Reply to author
Forward
0 new messages