Buffer overflow for m_state in class IteratedHashWithStaticTransform

View: New views
1 Messages — Rating Filter:   Alert me  

Buffer overflow for m_state in class IteratedHashWithStaticTransform

by Boris Zanin :: Rate this Message:

| View Threaded | Show Only this Message

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.

--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.