aboutsummaryrefslogtreecommitdiff
path: root/test/func.test
diff options
context:
space:
mode:
authordrh <>2024-12-19 12:08:39 +0000
committerdrh <>2024-12-19 12:08:39 +0000
commit2dcd4fad6b1a4cfbaa0c1e106b840d15caf574dd (patch)
treefbdd1bb9ff943c5f37b6e0a2c59e793e78810dfe /test/func.test
parentb097ef29d12788153f7381bb5598430d6028d7f7 (diff)
downloadsqlite-2dcd4fad6b1a4cfbaa0c1e106b840d15caf574dd.tar.gz
sqlite-2dcd4fad6b1a4cfbaa0c1e106b840d15caf574dd.zip
Fix additional integer overflow problems in the substr() function.
FossilOrigin-Name: 472abb492f1d1553ae6bdf53cc64bebfe75423526335beab7eaff26cc495cd7d
Diffstat (limited to 'test/func.test')
-rw-r--r--test/func.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/func.test b/test/func.test
index 2b25c9434..85c9ada7e 100644
--- a/test/func.test
+++ b/test/func.test
@@ -123,6 +123,9 @@ do_test func-2.11 {
do_test func-2.12 {
execsql {SELECT substr('abcdefg',1,0x100000002)}
} {abcdefg}
+do_test func-2.13 {
+ execsql {SELECT quote(substr(x'313233343536373839',0x7ffffffffffffffe,5))}
+} {X''}
# Only do the following tests if TCL has UTF-8 capabilities
#