1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Use the sqlite3Fts3ErrMsg() function to set error message text in FTS3,

and to ensure that error messages are not overwritten and thus leaked.

FossilOrigin-Name: 605347e087ec5eb817f3c94f4616abe26c7ab66b
This commit is contained in:
drh
2015-05-01 14:07:30 +00:00
parent 6296a2ab4b
commit abf582509d
10 changed files with 41 additions and 29 deletions

View File

@ -824,7 +824,7 @@ static int fts3MatchinfoCheck(
){
return SQLITE_OK;
}
*pzErr = sqlite3_mprintf("unrecognized matchinfo request: %c", cArg);
sqlite3Fts3ErrMsg(pzErr, "unrecognized matchinfo request: %c", cArg);
return SQLITE_ERROR;
}