[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

Salz, Rich via RT rt at openssl.org
Tue Apr 26 18:03:39 UTC 2016


That code is still wrong.  Once you "get0" something you can only look at it.  You cannot pass it off to a "set0" function.  Get0 gives you a pointer that *you do not own* and *set0* takes a pointer that you DO own and are giving away.  You can't give away something that isn't yours :)

The error is thinking that "my_e" is yours; it's not.  As documtend.


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4518
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list