diff options
author | drh <> | 2024-12-19 12:08:39 +0000 |
---|---|---|
committer | drh <> | 2024-12-19 12:08:39 +0000 |
commit | 2dcd4fad6b1a4cfbaa0c1e106b840d15caf574dd (patch) | |
tree | fbdd1bb9ff943c5f37b6e0a2c59e793e78810dfe /test/func.test | |
parent | b097ef29d12788153f7381bb5598430d6028d7f7 (diff) | |
download | sqlite-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.test | 3 |
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 # |