mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix of connect engine crashes
This commit is contained in:
committed by
Oleksandr Byelkin
parent
c04ae0d365
commit
dc31627c2d
@@ -3710,6 +3710,7 @@ char *bson_get_item(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
|||||||
PUSH_WARNING("CheckMemory error");
|
PUSH_WARNING("CheckMemory error");
|
||||||
goto fin;
|
goto fin;
|
||||||
} else {
|
} else {
|
||||||
|
bnx.Reset();
|
||||||
jvp = bnx.MakeValue(args, 0, true);
|
jvp = bnx.MakeValue(args, 0, true);
|
||||||
|
|
||||||
if (g->Mrr) { // First argument is a constant
|
if (g->Mrr) { // First argument is a constant
|
||||||
@@ -4055,6 +4056,7 @@ double bsonget_real(UDF_INIT *initid, UDF_ARGS *args,
|
|||||||
*is_null = 1;
|
*is_null = 1;
|
||||||
return 0.0;
|
return 0.0;
|
||||||
} else {
|
} else {
|
||||||
|
bnx.Reset();
|
||||||
jvp = bnx.MakeValue(args, 0);
|
jvp = bnx.MakeValue(args, 0);
|
||||||
|
|
||||||
if ((p = bnx.GetString(jvp))) {
|
if ((p = bnx.GetString(jvp))) {
|
||||||
|
Reference in New Issue
Block a user