diff options
author | Praveenkumar Hulakund <praveenkumar.hulakund@oracle.com> | 2013-01-10 14:34:27 +0530 |
---|---|---|
committer | Praveenkumar Hulakund <praveenkumar.hulakund@oracle.com> | 2013-01-10 14:34:27 +0530 |
commit | 5e399d1cd023345e51fb6dbcb0078074abe039b5 (patch) | |
tree | 2e94fc70010c57d56d61363a5e0989cf5bd5519f /libmysql/libmysql.c | |
parent | df5444d47ca64f4024c959913974a2a06f75ab14 (diff) | |
download | mariadb-git-5e399d1cd023345e51fb6dbcb0078074abe039b5.tar.gz |
Bug#11749556: DEBUG ASSERTION WHEN ACCESSING A VIEW AND
AVAILABLE MEMORY IS TOO LOW
Analysis:
---------
In function "mysql_make_view", "table->view" is initialized
after parsing(using File_parser::parse) the view definition.
If "::parse" function fails then control is moved to label
"err:". Here we have assert (table->view == thd->lex).
This assert fails if "::parse" function fails, as
table->view is not initialized yet.
File_parser::parse fails if data being parsed is incorrect/
corrupted or when memory allocation fails. In this scenario
its failing because of failure in memory allocation.
Fix:
---------
In case of failure in function "File_parser::parse", moving
to label "err:" is incorrect. Modified code to move
to label "end:".
Diffstat (limited to 'libmysql/libmysql.c')
0 files changed, 0 insertions, 0 deletions