SQLite

All files named ”test/printf.test”
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for test/printf.test

2024-02-17
03:32
[685fec5a0c] part of check-in [7fca1bc482] Fix rounding in zero-precision %f and %g printf conversions. Forum post 393708f4a8. This bug was introduced by check-in [32befb224b254639] and first appeared in version 3.43.0. (check-in: [7fca1bc482] user: drh branch: trunk, size: 144617)
2023-05-05
19:36
[512152dca7] part of check-in [910e770ad4] Fix a buffer overrun that could occur when using the format() function to format a very small real value with the "," modifier. (check-in: [910e770ad4] user: dan branch: trunk, size: 144150)
2023-02-24
01:08
[931381fede] part of check-in [f32055e811] Fix an incorrect optimization that was attempted as part of check-in [18de3a8e6b431a07]. (check-in: [f32055e811] user: drh branch: fp-conversion, size: 143868)
2023-02-23
21:18
[22449e1398] part of check-in [18de3a8e6b] Increased precision of floating-point to decimal conversions when the floating point value has no fractional part. Forum post d1387c3979c7f557 (check-in: [18de3a8e6b] user: drh branch: fp-conversion, size: 143750)
2020-06-09
13:53
[390d0d7fcf] part of check-in [232431f32e] Modify a test file to avoid causing Tcl to allocate too much memory. (check-in: [232431f32e] user: dan branch: trunk, size: 142770)
2020-05-23
19:58
[1e0e469f5f] part of check-in [d08d340587] Limit the "precision" of floating-point to text conversions in the printf() function to 100,000,000. Fix for ticket [23439ea582241138]. (check-in: [d08d340587] user: drh branch: trunk, size: 142713)
2019-02-22
15:42
[0300699733] part of check-in [e7144ffd21] Modify sqlite3_str_finish() and sqlite3VMPrintf() so that they always return NULL on any OOM or SQLITE_LIMIT_LENGTH error. (check-in: [e7144ffd21] user: drh branch: trunk, size: 142591)
2018-09-18
17:00
[a3e559bc9d] part of check-in [de2e3cbd08] Enhance tester.tcl so that when "--malloctrace=1" is specified, the test generates self-contained Tcl scripts that present GUIs instead of *.sql files that require a separate program to interpret. (check-in: [de2e3cbd08] user: dan branch: trunk, size: 142596)
2015-04-07
15:39
[b3ff34e73d] part of check-in [8e4ac2ce24] Avoid signed integer overflow when converting oversized in-line integer widths and precisions in printf(). (check-in: [8e4ac2ce24] user: drh branch: trunk, size: 142657)
14:38
[b38d5d81a8] part of check-in [95625ef3ad] Another change to avoid a problem caused by integer overflow in the printf() code. (check-in: [95625ef3ad] user: dan branch: trunk, size: 142664)
13:28
[5ab2b4666c] part of check-in [5ce4e7d765] Further changes to guard against integer overflow in the width and precision of printf() arguments. (check-in: [5ce4e7d765] user: drh branch: trunk, size: 142494)
12:41
[2f11179e8b] part of check-in [c494171f77] Guard against excessive width and precision in floating-point conversions in the printf routines. (check-in: [c494171f77] user: drh branch: trunk, size: 141792)
2011-10-11
17:54
[ec9870c4dc] part of check-in [1f843fb383] Remove all precision and width limits from formatting fields in the sqlite3_mprintf() family of functions. Malloc for space as necessary. The prevents a stack overflow on very large numbers using %f. (check-in: [1f843fb383] user: drh branch: trunk, size: 141687)
2009-11-25
16:53
[05970cde31] part of check-in [3ba773132d] Enhance the %q, %Q, and %w printf conversions so that the precisions specifies the length of the input. (check-in: [3ba773132d] user: drh branch: trunk, size: 141684)
2009-02-01
00:21
[47e9e5bbec] part of check-in [3ba1a17b13] Add a new test command, sqlite3_mprintf_long, for testing the behavior of "long integer" printf formatting. Ticket #3621. (CVS 6224) (check-in: [3ba1a17b13] user: drh branch: trunk, size: 140199)
2008-07-09
16:51
[262a5acd31] part of check-in [2d8f7bebf0] Test coverage improvements on printf. (CVS 5385) (check-in: [2d8f7bebf0] user: drh branch: trunk, size: 140198)
2008-07-08
02:24
[b04797fc06] part of check-in [6f2629c783] Test coverage improvements in printf.c. (CVS 5360) (check-in: [6f2629c783] user: drh branch: trunk, size: 138011)
2008-02-01
01:19
[c3405535b4] part of check-in [514d7e4743] Modify the printf test script so that it does not depend on the platform printf, so that we do not spurious test failures when moving from one platform to another. (CVS 4767) (check-in: [514d7e4743] user: drh branch: trunk, size: 137774)
2007-09-03
07:31
[6bf1a86c6a] part of check-in [ed2a2e0102] Fixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined. (CVS 4370) (check-in: [ed2a2e0102] user: danielk1977 branch: trunk, size: 10714)
2007-09-01
10:01
[d3cacac565] part of check-in [7571345d20] Allow sqlite3GetInt32 to recognize 10-digit decimal numbers as 32-bit. (CVS 4362) (check-in: [7571345d20] user: danielk1977 branch: trunk, size: 10653)
09:02
[13e2887b21] part of check-in [595bfe72f0] Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361) (check-in: [595bfe72f0] user: danielk1977 branch: trunk, size: 10524)
2007-05-10
17:23
[69d8cb0771] part of check-in [ffe615a711] Add some UTF-8 test infrastructure. Treat NaN as NULL. The printf routines print infinity as "Inf" not as "NaN". Ticket #2345. (CVS 3972) (check-in: [ffe615a711] user: drh branch: trunk, size: 9857)
2007-05-07
11:24
[71047b5fe8] part of check-in [f3ae4ac5fe] Change sqlite3_snprintf() so that it does not write a zero-terminator if the buffer size argument is less than 1. Ticket #2341. Added documentation about the sqlite3_snprintf() function. (CVS 3935) (check-in: [f3ae4ac5fe] user: drh branch: trunk, size: 9423)
2007-03-31
15:02
[483b9fe75f] part of check-in [c2badb208f] Improved test coverage for printf.c. (CVS 3780) (check-in: [c2badb208f] user: drh branch: trunk, size: 9217)
2006-03-19
13:00
[cdd8e20dd9] part of check-in [8ae6ccc715] Increase test coverage to above 98%. (CVS 3144) (check-in: [8ae6ccc715] user: drh branch: trunk, size: 8236)
2006-03-06
20:55
[c89f60e789] part of check-in [e510e6dd9d] Code changes resulting from Coverity analysis. http://scan.coverity.com/ Found 1 potential segfault in sqlite3_mprintf(). Also 2 failures to fclose() following a malloc() failure. And lots of cases where unnecessary conditionals could be removed from the code. (CVS 3126) (check-in: [e510e6dd9d] user: drh branch: trunk, size: 8095)
2005-09-06
21:40
[9e10c74e16] part of check-in [b86bd70f30] Changes to reduce the amount of stack space required. (CVS 2661) (check-in: [b86bd70f30] user: drh branch: trunk, size: 8081)
2005-08-30
19:30
[f527c840b7] part of check-in [0f7a53f78d] Fix printf.c so that it handles 10.0 correctly. (CVS 2643) (check-in: [0f7a53f78d] user: drh branch: trunk, size: 8081)
2005-08-19
02:26
[4a91651d4f] part of check-in [842a80bd8f] Increased test coverage on trigger.c and printf.c. (CVS 2601) (check-in: [842a80bd8f] user: drh branch: trunk, size: 7704)
2005-08-13
12:59
[dc39f7c66d] part of check-in [4b98dace6b] Add the "!" flag to the "%g" mprintf conversion parameter to force a decimal point. This prevents floating point values from appearing as integers. Use this flag when converting floating point to text. Ticket #1362. (CVS 2586) (check-in: [4b98dace6b] user: drh branch: trunk, size: 7372)
03:07
[96ae2891aa] part of check-in [4f47c3c884] Make the round() function work correctly on numbers with very large exponents. Ticket #1340. (CVS 2585) (check-in: [4f47c3c884] user: drh branch: trunk, size: 6652)
2004-09-09
00:35
[92ba4c510b] part of check-in [b12fc46dcd] Trying to get some tests in printf.test to pass on 64-bit systems. (CVS 1952) (check-in: [b12fc46dcd] user: drh branch: trunk, size: 6170)
2004-07-27
13:38
[5a30fb0d73] part of check-in [a62129af99] Additional test case to cover ticket #831. (CVS 1872) (check-in: [a62129af99] user: drh branch: trunk, size: 6109)
2004-07-17
21:56
[428ad9be92] part of check-in [4f56db1149] mprintf() correctly handles "%s","". Fix for ticket #812. (CVS 1800) (check-in: [4f56db1149] user: drh branch: trunk, size: 6033)
2004-06-29
13:04
[5ed2e033a0] part of check-in [ba87834d86] Improved test coverage of table.c and printf.c. (CVS 1762) (check-in: [ba87834d86] user: drh branch: trunk, size: 5956)
2004-06-25
01:10
[1eb584b727] part of check-in [200cd3baf6] Fix signed integer problems in vxprintf. Ticket #778. Also remove some dead code from util.c. (CVS 1685) (check-in: [200cd3baf6] user: drh branch: trunk, size: 5372)
2004-06-14
23:46
[31ac25b4f8] part of check-in [af6edd2c0a] Update some old tests to use the new API. (CVS 1593) (check-in: [af6edd2c0a] user: danielk1977 branch: trunk, size: 4630)
2004-02-21
19:41
[46b3d07d59] part of check-in [96a6d2d3ff] Test cases for printf of double overflows. (CVS 1260) (check-in: [96a6d2d3ff] user: drh branch: trunk, size: 4583)
2004-02-02
12:29
[bdb5f66eb4] part of check-in [0b3f552b98] Remove undocumented extensions from sqlite_mprintf() and friends in order to make it about 10% smaller. (CVS 1207) (check-in: [0b3f552b98] user: drh branch: trunk, size: 4302)
2003-06-16
03:08
[3ed02f1361] part of check-in [eca1398eaa] Add the %z format to the sqlite_mprintf() and related functions. (CVS 1028) (check-in: [eca1398eaa] user: drh branch: trunk, size: 4396)
2002-06-16
04:56
[a29b8afa24] part of check-in [7d5fc35b5d] Added printf-4.(2-4) test cases to test new %Q format specifier. (CVS 622) (check-in: [7d5fc35b5d] user: chw branch: trunk, size: 4287)
2001-09-20
01:44
[3cb4150737] part of check-in [d2a1aac467] 2.0-Alpha-2 release (CVS 258) (check-in: [d2a1aac467] user: drh branch: trunk, size: 3929)
2001-09-16
00:13
[93ecd43cc4] part of check-in [4e926efe2b] Disclaimed copyright. Preparing for release 2.0. (CVS 250) (check-in: [4e926efe2b] user: drh branch: trunk, size: 3880)
2001-04-11
14:28
[4c71871e1a] part of check-in [86b30cd097] better handling of out-of-memory errors (CVS 207) (check-in: [86b30cd097] user: drh branch: trunk, size: 4417)
2001-04-07
15:24
Added: [18e44e4e15] part of check-in [2507ec4061] Added new tests (CVS 206) (check-in: [2507ec4061] user: drh branch: trunk, size: 3604)