-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.2
-
Fix Version/s: 3.0.3
-
Labels:None
mariadb_dyncol_val_double() function (defined in libmariadb/mariadb_dyncol.c) has the following code:
if ((str= malloc(val->x.string.value.length + 1))) |
return ER_DYNCOL_RESOURCE; |
memcpy(str, val->x.string.value.str, val->x.string.value.length); |
Shouldn't it be
if ((str= malloc(val->x.string.value.length + 1)) == NULL) |
...
|
instead?