mirror of
https://github.com/MariaDB/server.git
synced 2025-11-08 00:28:29 +03:00
The recursive nature of add_table_function_dependencies resolution meant that the detection of a stack overrun would continue to recursively call itself. Its quite possible that a user SQL could get multiple ER_STACK_OVERRUN_NEED_MORE errors. Additionaly the results of the stack overrrun check result was incorrectly assigned to a table_map result. Its only because of the "if error" check after add_table_function_dependencies is called, that would detected the stack overrun error, prevented a potential corruped tablemap is from being processed. Corrected add_table_function_dependencies to stop and return on the detection of a stack overrun error. The add_extra_deps call also was true on a stack overrun.
9.4 KiB
9.4 KiB