MENT-805 ODBC login fails with with Spider from bb-10.5-MENT-30 if password contains a semicolon

This commit is contained in:
Kentoku SHIBA 2020-05-28 19:50:35 +09:00
parent b3250ab3b2
commit d88870e6cc
2 changed files with 28 additions and 0 deletions

View File

@ -10810,3 +10810,25 @@ void spider_table_remove_share_from_crd_thread(
DBUG_VOID_RETURN;
}
#endif
uchar *spider_duplicate_char(
uchar *dst,
uchar esc,
uchar *src,
uint src_lgt
) {
uchar *ed = src + src_lgt;
DBUG_ENTER("spider_duplicate_char");
while (src < ed)
{
*dst = *src;
if (*src == esc)
{
++dst;
*dst = esc;
}
++dst;
++src;
}
DBUG_RETURN(dst);
}

View File

@ -738,3 +738,9 @@ void spider_table_remove_share_from_crd_thread(
SPIDER_SHARE *share
);
#endif
uchar *spider_duplicate_char(
uchar *dst,
uchar esc,
uchar *src,
uint src_lgt
);