mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a buffer overrun that could occur when using the format() function to format a very small real value with the "," modifier.
FossilOrigin-Name: 910e770ad4d8e8e45bf069af963f2e975bfcfb882578dc5fe714cd2396258934
This commit is contained in:
@ -16,7 +16,6 @@
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
|
||||
|
||||
do_test printf-1.1.1 {
|
||||
sqlite3_mprintf_int {abc: %d %x %o :xyz}\
|
||||
1 1 1
|
||||
@ -3824,4 +3823,14 @@ do_execsql_test printf-17.11 {
|
||||
SELECT format('%.30f',1.0000000000000000076e-50);
|
||||
} 0.000000000000000000000000000000
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# dbsqlfuzz ad651aad4bb2100f3a724129a555d8d773366d46
|
||||
#
|
||||
db close
|
||||
sqlite3 db test.db
|
||||
sqlite3_db_config_lookaside db 0 0 0
|
||||
do_execsql_test printf-18.1 {
|
||||
SELECT length( format('%,.249f', -5.0e-300) );
|
||||
} {252}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user