mirror of
https://github.com/MariaDB/server.git
synced 2025-11-27 05:41:41 +03:00
- Fix MDEV-15735 CONNECT [filamtxt.cpp:429]: Suspicious condition
modified: storage/connect/filamtxt.cpp - Fix compiler warnings modified: storage/connect/domdoc.cpp modified: storage/connect/ha_connect.cc modified: storage/connect/json.h modified: storage/connect/jsonudf.cpp modified: storage/connect/tabext.cpp modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h - Miscelleanous from 10.3 modified: storage/connect/ha_connect.cc modified: storage/connect/mycat.cc modified: storage/connect/user_connect.cc
This commit is contained in:
@@ -1620,7 +1620,7 @@ static my_bool CheckMemory(PGLOBAL g, UDF_INIT *initid, UDF_ARGS *args, uint n,
|
||||
if (AllocSarea(g, ml)) {
|
||||
char errmsg[MAX_STR];
|
||||
|
||||
sprintf(errmsg, MSG(WORK_AREA), g->Message);
|
||||
snprintf(errmsg, sizeof(errmsg) - 1, MSG(WORK_AREA), g->Message);
|
||||
strcpy(g->Message, errmsg);
|
||||
return true;
|
||||
} // endif SareaAlloc
|
||||
@@ -1673,7 +1673,7 @@ static PCSZ MakeKey(PGLOBAL g, UDF_ARGS *args, int i)
|
||||
n = strlen(s);
|
||||
|
||||
if (IsJson(args, i))
|
||||
j = strchr(s, '_') - s + 1;
|
||||
j = (int)(strchr(s, '_') - s + 1);
|
||||
|
||||
if (j && n > j) {
|
||||
s += j;
|
||||
|
||||
Reference in New Issue
Block a user