MDEV-31284: SIGSEGV in VDec2_lazy::VDec2_lazy| Item_func_plus::decimal_op#4864
Open
raghunandanbhat wants to merge 1 commit into10.6from
Open
MDEV-31284: SIGSEGV in VDec2_lazy::VDec2_lazy| Item_func_plus::decimal_op#4864raghunandanbhat wants to merge 1 commit into10.6from
VDec2_lazy::VDec2_lazy| Item_func_plus::decimal_op#4864raghunandanbhat wants to merge 1 commit into10.6from
Conversation
…al_op Problem: When a query contains large number arithmatic operations (e.g. addition) on numbers, it can trigger deep recursion leading to a stack overrun and crashing the server. Currently, the server checks for stack overruns only during `fix_fileds` time and not during the execution of the query. Fix: Introduces a stack overrun check druing the execution of query to prevent crash during the execution time.
140db7f to
8f2c4b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes MDEV-31284
Problem:
When a query contains large number operations (e.g. addition) on decimal numbers, it can trigger deep recursion leading to a stack overrun and crashing the server. Currently, the server checks for stack overruns only during
fix_filedstime and not during the execution of the query.Fix:
Introduces a stack overrun check druing the execution of query to prevent crash during the execution time.