diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2021-02-05 11:24:05 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2021-02-05 11:25:24 +0100 |
commit | dc31627c2d3100ecb45ef71d8040fedff202a2f7 (patch) | |
tree | 139d82de38042274f9397afa54cf92e7d9f99823 | |
parent | c04ae0d365f4e65bf6c0ccc01c25d597e269d47e (diff) | |
download | mariadb-git-dc31627c2d3100ecb45ef71d8040fedff202a2f7.tar.gz |
Fix of connect engine crashes
-rw-r--r-- | storage/connect/bsonudf.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/connect/bsonudf.cpp b/storage/connect/bsonudf.cpp index f377e578399..0ef2f8ca9e6 100644 --- a/storage/connect/bsonudf.cpp +++ b/storage/connect/bsonudf.cpp @@ -3710,6 +3710,7 @@ char *bson_get_item(UDF_INIT *initid, UDF_ARGS *args, char *result, PUSH_WARNING("CheckMemory error"); goto fin; } else { + bnx.Reset(); jvp = bnx.MakeValue(args, 0, true); if (g->Mrr) { // First argument is a constant @@ -4055,6 +4056,7 @@ double bsonget_real(UDF_INIT *initid, UDF_ARGS *args, *is_null = 1; return 0.0; } else { + bnx.Reset(); jvp = bnx.MakeValue(args, 0); if ((p = bnx.GetString(jvp))) { |