You're right, that code causes a dangling pointer if you pass it an IV using
ConstByteArrayParameter with deepCopy = true, which I hadn't considered that
someone might do. I can add a check for that and throw an error if deepCopy
= true, or do you need that to be supported for some reason?
--------------------------------------------------
From: "Mark Millard" <
mar...@dsl-only.net>
Sent: Thursday, November 05, 2009 10:16 AM
To: "Crypto++ Users" <
cryptop...@googlegroups.com>
Subject: Dangling pointer in SimpleKeyingInterface::GetIVAndThrowIfInvalid
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the "Crypto++
> Users" Google Group.
> To unsubscribe, send an email to
>
cryptopp-user...@googlegroups.com.
> More information about Crypto++ and this group is available at
>
http://www.cryptopp.com.
> -~----------~----~----~----~------~----~------~--~---
>
>