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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user