[openssl-dev] [openssl.org #4518] OpenSSL-1.1.0-pre5 RSA_set0_key and related RSA_get0_*, RSA_set0_*, DSA_set0_* and DSA_get0_* problems
Viktor Dukhovni
openssl-users at dukhovni.org
Mon Apr 25 14:15:28 UTC 2016
On Mon, Apr 25, 2016 at 02:08:09PM +0000, Richard Levitte via RT wrote:
> I'm not sure how I'd change the following:
>
> Calling this function transfers the memory management of the values to the
> RSA object, and therefore the values that have been passed in should not
> be freed by the caller after this function has been called.
>
> That in itself hasn't changed, all that's being done is to correct a
> bug in the memory management. But if you have a good suggestion for a
> change in that sentence, I'm all ears.
There is no bug. It is not valid to transfer ownership of an object the
caller does not own.
--
Viktor.
More information about the openssl-dev
mailing list