1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-24 14:17:58 +03:00

Fix a possible printf() of a NULL string in fuzzcheck. (Passing a NULL to

"%s" in SQLite's internal printf() prints the text
"NULL", but it apparently segfaults glibc.  Whatever.)
[forum:/forumpost/e07d56579b|Forum post e07d56579b].

FossilOrigin-Name: 4ec69baf4f2a75585b92388cbc352836116381dce3f2d44a3b0f7d3360a17cf0
This commit is contained in:
drh
2025-08-05 23:01:31 +00:00
parent cd70a44d45
commit ff1d5e5bb8
3 changed files with 8 additions and 8 deletions

View File

@@ -1023,7 +1023,7 @@ extern int sqlite3_dbdata_init(sqlite3*,const char**,void*);
** print the supplied SQL statement to stdout.
*/
static int recoverSqlCb(void *pCtx, const char *zSql){
if( eVerbosity>=2 ){
if( eVerbosity>=2 && zSql ){
printf("%s\n", zSql);
}
return SQLITE_OK;