summaryrefslogtreecommitdiff
path: root/storage/myisam
diff options
context:
space:
mode:
authorShishir Jaiswal <shishir.j.jaiswal@oracle.com>2015-07-08 11:53:54 +0530
committerShishir Jaiswal <shishir.j.jaiswal@oracle.com>2015-07-08 11:53:54 +0530
commitbf681d6bb341411a8b17abeda8e723368545d48d (patch)
tree88c918ba447c871d976bdf58d0515fbf715cfa24 /storage/myisam
parent359f102ad157adaacc904a1c81f5ddcb9ce3662b (diff)
downloadmariadb-git-bf681d6bb341411a8b17abeda8e723368545d48d.tar.gz
Bug #20802751 - SEGMENTATION FAILURE WHEN RUNNING
MYSQLADMIN -U ROOT -P DESCRIPTION =========== Crash occurs when no command is given while executing mysqladmin utility. ANALYSIS ======== In mask_password() the final write to array 'temp_argv' is done without checking if corresponding index 'argc' is valid (non-negative) or not. In case its negative (would happen when this function is called with 'argc'=0), it may cause a SEGFAULT. Logically in such a case, mask_password() should not have been called as it would do no valid thing. FIX === mask_password() is now called after checking 'argc'. This function is now called only when 'argc' is positive otherwise the process terminates
Diffstat (limited to 'storage/myisam')
0 files changed, 0 insertions, 0 deletions