aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
Commit message (Collapse)AuthorAge
...
* Another change to avoid a problem caused by integer overflow in the printf() ↵dan2015-04-07
| | | | | code. FossilOrigin-Name: 95625ef3adc3c408d67e70f877f390445fbb8292
* Further changes to guard against integer overflow in the width and precisiondrh2015-04-07
| | | | | of printf() arguments. FossilOrigin-Name: 5ce4e7d7651e5c72a59f03f7aeb366291e62ab57
* Guard against excessive width and precision in floating-point conversionsdrh2015-04-07
| | | | | in the printf routines. FossilOrigin-Name: c494171f77dc2e5e04cb6d865e688448f04e5920
* Improvements to SQLITE_ENABLE_API_ARMOR.drh2015-02-13
| | | FossilOrigin-Name: 823ad40ccb5b51aaa0d5a48da63b465df9d0649a
* The va_list argument cannot take on a NULL value and cannot be compared withdrh2015-01-25
| | | | | NULL on some platforms (ex: ARM). So do not attempt to do so. FossilOrigin-Name: 1964e656b4b420e8d6a4ba12d270ed02db292b88
* Improvements to compile-time-option hygiene. Use "#if OPTION" instead ofdrh2015-01-10
| | | | | | | "#ifdef OPTION" in cases where that makes sense, so that -DOPTION=0 will work. Add the "Have-Not" configuration in releasetest.tcl which disables all of the "HAVE_component" compile-time options. FossilOrigin-Name: 9e92a5ed5aaba20461ed4ce8359d6e34e7773d68
* Use exponential buffer size growth in StrAccum, as long as the size does notdrh2014-11-03
| | | | | | | grow to large, to avoid excess memory allocation resize operations. Also, document the fact that setting scratch memory causes SQLite to try to avoid large memory allocations. FossilOrigin-Name: a518bc3318232d652349eb29303ff250aee40459
* When enlarging the size of a StrAccum object, use sqlite3DbMallocSize() todrh2014-11-03
| | | | | record the entire size of the allocation, not just the requested size. FossilOrigin-Name: 3dda3c937469ce661d1cd0e8d8963a03e698ee39
* Fix the %c format character in sqlite3VXPrintf() so that it correctlydrh2014-10-29
| | | | | handles precisions larger than 70. FossilOrigin-Name: 08a27440f19b7fc884464832e6105af1bf008172
* Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work indrh2014-10-24
| | | | | progress and is not yet completely functional. FossilOrigin-Name: c297a84bc678f81ffc0aa9139ab73f0ca87c1971
* Disable the use of strchrnul() unless specifically enabled by compile-timedrh2014-10-22
| | | | | options. FossilOrigin-Name: e580470db77d6da970c755102790e603fb26b3c6
* Improvements to the new syntax-tree output routines: Omit the "END SELECT"drh2014-09-30
| | | | | | mark and instead terminate the graph at the last item. Increase the maximum tree depth to 100. FossilOrigin-Name: 5ce05757aac80b99c3b2141cd301809f8e28e661
* Remove the SQLITE_ENABLE_TREE_EXPLAIN compile-time option. Add alternativedrh2014-09-30
| | | | | | debugging display routines: sqlite3TreeViewExpr(), sqlite3TreeViewExprList(), and sqlite3TreeViewSelect(). FossilOrigin-Name: 4ff51325d6b41d0c59e303b573700ec80c51d216
* Only enable HAVE_STRCHRNUL by default on linux, as that is the only placedrh2014-09-20
| | | | | it appears to work by default. FossilOrigin-Name: 0fac2c045f47c7735af4eb68ced81d8b43622a1f
* Revise macro usage in 'sqliteInt.h'.mistachkin2014-09-20
| | | FossilOrigin-Name: 35db3e2f350ca2bc6bb9e1a647aec7f93bfb7065
* Make sure of the strchrnul() library function on platforms where it isdrh2014-09-18
| | | | | available. FossilOrigin-Name: ef1aa10b7f54912cba71cd0a98c5055d501de54f
* Fix typos in comments. No code changes.peter.d.reid2014-09-06
| | | FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69
* Performance improvement in the printf() logic by avoiding unnecessary stackdrh2014-08-22
| | | | | pointer movement. FossilOrigin-Name: f7f2160db014f0ae11ad13c8ad70ad3444124e3e
* Fix a compile of harmless static analyzer warnings.drh2014-05-31
| | | FossilOrigin-Name: 7e287f2055dcd82c92d1711aec97cb6552a354bb
* Clean up some obsolete "register" declarations in printf.c.drh2014-03-17
| | | FossilOrigin-Name: ecd9d3f9453be0bb8e312d8027fd1a9e55882f36
* Performance enhancements and size reduction for sqlite3VXPrintf()drh2014-03-17
| | | FossilOrigin-Name: eb071eb58cf675bd6cd9dd46aed9d57fbb7a77e8
* Fix the formatting of %c in the printf() SQL function.drh2013-12-17
| | | FossilOrigin-Name: 3375571a5e267744c19a7c310840256cec57a242
* Add the printf() SQL function.drh2013-12-17
| | | FossilOrigin-Name: 6db7052eeefafdbf26b3153bc38600fecfb53ae6
* Avoid unnecessary calls to sqlite3_free() from within sqlite3VXPrintf().drh2013-12-13
| | | FossilOrigin-Name: e2a8b280e84c1f8fd6106d9427e1ad6cbcfccd10
* Fix harmless compiler warnings.drh2013-12-11
| | | FossilOrigin-Name: a7e5fcd66659750eb2f4675082df324e7cf35427
* Fix harmless compiler warning.mistachkin2013-12-11
| | | FossilOrigin-Name: 2525296d919245ebb01077aad541e4ae6eab7940
* Performance optimizations for sqlite3VXPrintf().drh2013-12-09
| | | FossilOrigin-Name: 9227ad48e1612b32a3a3e9551c49890f93abc0a7
* Simplification to the StrAccum object and the sqlite3StrAccumAppend()drh2013-08-21
| | | | | method that also results in slightly better performance. FossilOrigin-Name: 700dbbea8647e0fdaee6d0aba3d3dd8ebfbac04a
* Make sure an adequate number of digits are shown for binary-to-text renderingdrh2013-07-08
| | | | | of very small floating point values. FossilOrigin-Name: 776e65f98ce80a8ed56cb73ef56c751702698612
* Many small harmless comment changes. Removal of obsolete comments anddrh2013-05-28
| | | | | fixing misspelled words. No changes to code. FossilOrigin-Name: a0d5cc9315dc6e9ef7dee4c3dfabf4e562d64376
* Round-trip conversions of real->text->real are now lossless on x64 with GCC.drh2012-06-19
| | | | | Untested on other platforms so far. Still a corner-case problem with round(). FossilOrigin-Name: fd7bd4a59361be41b10522abc212cf56fb5e35b4
* Improved accuracy on text-to-real and real-to-text conversions. Mostdrh2012-06-19
| | | | | | conversions now round-trip correctly. Still need to fix some corner cases. FossilOrigin-Name: 8ecffca900cd6a8922001fd458a266ce8c83fb66
* Begin adding the data-structure explaining subsystem. All is contained withindrh2011-12-06
| | | FossilOrigin-Name: 79ae51c5b1b20ed0a425a87e65a32a096a80b7e1
* Add assert() statements and eliminate needless variable assignments in orderdrh2011-10-14
| | | | | | | to get the clang scan-build utility to report zero problems against the SQLite core. Clang's static analysis did find one real problem - but it was in the command-line shell, not in the SQLite core. FossilOrigin-Name: 60fee9574b0125705787e33c16f116cf188c8323
* Clean up obsolete comments in printf.c.drh2011-10-12
| | | FossilOrigin-Name: 97ef4f5013731fa3a0f72451b7e8c9aec5523104
* Remove all precision and width limits from formatting fields in thedrh2011-10-11
| | | | | | sqlite3_mprintf() family of functions. Malloc for space as necessary. The prevents a stack overflow on very large numbers using %f. FossilOrigin-Name: 1f843fb383583ee7ef51c13b8a820744e450101a
* Fix all known instances of signed-integer overflow. Within SQL expressions,drh2011-03-05
| | | | | | | integer overflow now forces coercion to floating point. The shift operators work with any integer right-hand operand with negative values reversing the direction of the shift. FossilOrigin-Name: abf21394124a0af46f072793718964cee2ce55d0
* Fix an instance of signed arithmetic overflow and an one bit-shift overflow.drh2011-03-05
| | | | | Mark six other signed arithmetic overflow locations that need fixing. FossilOrigin-Name: 04abab71ecd52f6070b9f84781a3df3d6dba7722
* Change sqlite3StrAccumAppend() to use realloc instead of malloc.dan2011-01-21
| | | FossilOrigin-Name: 380f61df0754ceec6b3f6a758d04e951cce8c3d9
* Add the sqlite3_vsnprintf() interface.drh2011-01-05
| | | FossilOrigin-Name: fc67adea414320e0c0b24054f76070cfaeebb401
* Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() anddrh2010-07-24
| | | | | all memory from sqlite3_malloc() is freed by sqlite3_free(). FossilOrigin-Name: ac1f37a647e9ed1c00a901d26d9956a86c40117a
* Fix for [9abd6aa831]. Do not overread a buffer used for an %q or %w ↵dan2010-03-04
| | | | | conversion with a precision specifier. FossilOrigin-Name: 5e472896e02eed05c6c0886a48acd0bdc7a38731
* Fix an uninitialized variable in printf when compiling withdrh2010-03-04
| | | | | SQLITE_OMIT_FLOATING_POINT. FossilOrigin-Name: 14ad62b9a54dba5c5a2d4a994bcd4be6ab6e711f
* Increase the maximum length of an sqlite3_log() result string. Provide moredrh2010-03-04
| | | | | details on the statement abort log message. FossilOrigin-Name: 5322d1df5ba981001d248b7fb2ee02281e4f9723
* Modify the sqlite3_log() interface and implementation so that it neverdrh2010-03-03
| | | | | | uses dynamic memory allocation - to avoid deadlocking when called while holding the memory allocator mutex. FossilOrigin-Name: 28d1bc98d60319b10af427072037a0121bc76259
* Test coverage enhancements. Additional documentation detail on the newdrh2010-02-25
| | | | | sqlite3_log() interface. FossilOrigin-Name: d986e9289388fd72257b26cb2f9c972177255cd4
* Log all error messages if logging is enabled.drh2010-02-22
| | | FossilOrigin-Name: a8076aede33c07e9a2aaa05be8a888f37b45e41c
* Add a new, experimental logging interface designed to aid in debugging ofdrh2010-02-18
| | | | | deeply embedded projects that use SQLite. FossilOrigin-Name: 103321e37ae46eacfad4e127d13477ad5dd02bab
* When SQLITE_OMIT_FLOATING_POINT is defined, the floating-point formats indrh2010-01-13
| | | | | | the sqlite3_*printf() functions should pull an int64 off of the parameter list and ignore it. FossilOrigin-Name: 3fd6f9ad06b786116ca18c1e812363d30cd3060e
* Initial check-in of code that inserts tokenizations of the valuesdrh2009-11-25
| | | | | for bound parameters into the output of sqlite3_trace(). FossilOrigin-Name: 545cfb3b63f482036ae152e6ebcce86d373585a8