mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix a theoretical OOB memory access in sqlite3_stmt_scanstatus_v2().
FossilOrigin-Name: 87be9580747b405c2c534beadb0f95cee0d4f34e0245f90e157a6b7ada38e092
This commit is contained in:
@ -328,6 +328,17 @@ QUERY (nCycle=nnn)
|
||||
--SCAN xy2 (nCycle=nnn)
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
reset_db
|
||||
|
||||
# Check that an OOB parameter (45) does not cause asan or valgrind errors.
|
||||
#
|
||||
do_test 7.0 {
|
||||
db eval {SELECT * FROM sqlite_schema}
|
||||
set stmt [db version -last-stmt-ptr]
|
||||
sqlite3_stmt_scanstatus -flags complex $stmt 1000000
|
||||
} {}
|
||||
|
||||
#explain_i { SELECT (a % 2), group_concat(b) FROM t1 GROUP BY 1 }
|
||||
#puts_debug_info { SELECT (a % 2), group_concat(b) FROM t1 GROUP BY 1 }
|
||||
|
||||
|
Reference in New Issue
Block a user