diff options
author | stephan <stephan@noemail.net> | 2023-10-14 13:24:30 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-10-14 13:24:30 +0000 |
commit | a17f63290cd2a13cef5b34cbb84a7ce87de27545 (patch) | |
tree | f1800b046289741ec3db1a3d6b97795f70790ae7 /src/vdbeblob.c | |
parent | 067a13c395494a8ee2f1624c3eb9b96d60ad6888 (diff) | |
download | sqlite-a17f63290cd2a13cef5b34cbb84a7ce87de27545.tar.gz sqlite-a17f63290cd2a13cef5b34cbb84a7ce87de27545.zip |
Add column name to API_ARMOR check in sqlite3_blob_open() to avoid a null-pointer deref.
FossilOrigin-Name: 0114a6622afc4588c47e98d804340449417b603dc4831513eab4d8e4ccb15d42
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r-- | src/vdbeblob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index ea6f016e3..522447dbc 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -142,7 +142,7 @@ int sqlite3_blob_open( #endif *ppBlob = 0; #ifdef SQLITE_ENABLE_API_ARMOR - if( !sqlite3SafetyCheckOk(db) || zTable==0 ){ + if( !sqlite3SafetyCheckOk(db) || zTable==0 || zColumn==0 ){ return SQLITE_MISUSE_BKPT; } #endif |