Bug #80572 Taking pointer from temporary variable.
Submitted: 1 Mar 2016 9:32 Modified: 17 Mar 2016 16:02
Reporter: Robert Gołębiowski Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Security: Encryption Severity:S3 (Non-critical)
Version:5.7.12 OS:Any
Assigned to: CPU Architecture:Any

[1 Mar 2016 9:32] Robert Gołębiowski
Description:
In okv_io.cc there are statements like this:
oratext *uid= reinterpret_cast<oratext*>(const_cast<char*>(key_okv->get_okv_id().c_str()));

How to repeat:
Go to okv_io.cc

Suggested fix:
Create a stack variable for each temporary variable from which pointer is taken.
[17 Mar 2016 16:02] Paul DuBois
Posted by developer:
 
Fixed in 5.7.12.

Bug affects no released version. No changelog entry needed.