Bug #90496 remove pointer-casting of tree_walk_action functions
Submitted: 18 Apr 2018 12:26 Modified: 19 Apr 2018 17:18
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[18 Apr 2018 12:26] Tor Didriksen
Description:
C-style pointer-casting of arguments to tree_walk() will in many cases lead to UBSAN warnings anyways, so remove them.

How to repeat:
Read the code.
See also:
Bug#27852734 POTENTIAL STACK CORRUPTION WITH FUNCTION CASTING (INT-RETURNING TO VOID-RETURNIN

Suggested fix:
Remove pointer-casting, and fix build errors.
[19 Apr 2018 17:18] Paul DuBois
Fixed in 8.0.13.

Code cleanup. No changelog entry needed.