-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3.0, 2.3.1
-
Component/s: None
-
Labels:None
in mysql_stmt_fetch_column function have follow code
if (bind[0].length)
|
*bind[0].length= stmt->bind[column].length_value;
|
else
|
*bind[0].length= *stmt->bind[column].length;
|
if bind[0].length ptr is NULL, else branch will coredump
The right code maybe
if (bind[0].length) |
*bind[0].length= *stmt->bind[column].length; |
else |
bind[0].length= &stmt->bind[column].length_value; |