aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
Commit message (Collapse)AuthorAge
...
* Enhance the sqlite3_str_new() interface so that it always returns a validdrh2018-05-16
| | | | | and non-NULL pointer even in an OOM condition. FossilOrigin-Name: ed5b09680fd6659ebbe5ace3c1c56f3962bbd75cfdf65c7565651900cf87917a
* Fix minor problems with the sqlite3_str interface.drh2018-05-09
| | | FossilOrigin-Name: 43ea8a6836ccb9910314d35e07d881694200c97ef5969629f62e49f7a2a42f92
* Make the internal dynamic string interface available to extensions usingdrh2018-05-09
| | | | | | | the new sqlite3_str object and its associated methods. This is mostly just a renaming of internal objects and methods to use external names, through there are a few small wrapper functions. FossilOrigin-Name: 87f261f0cb800b06ad786f6df16f2c4dddd0d93dfdcc77b4a4eaa22920b56bf1
* Optimize calls to sqlite3_mprintf("%z...") so that they attempt to appenddrh2018-02-20
| | | | | | text onto the end of the existing memory allocation rather than reallocating and copying. FossilOrigin-Name: 4bc8a48e644562f6e6192f4c6fc4a70f6bb59f8126ed6c6dc876bedf65d74cda
* Printing a value of 0 using %c terminates the string.drh2018-02-19
| | | FossilOrigin-Name: 255612f0a131f2f522cbca3cc5a1edcf7e38938abca25ba421e7e38a422db9c9
* Test cases and a bug fix on the new unicode handling in %c.drh2018-02-19
| | | FossilOrigin-Name: e41d64e95b9b6fec5dc329553822925e7d648a41912b420cfa1ba198736e6bab
* Fix the %c substitution in printf() so that it works with unicode characters.drh2018-02-19
| | | FossilOrigin-Name: c35be1d9e9132fbadc74d207c1088e5a710a151c0835c38a63bf3c8e6fd711a0
* Make the alternate-form-2 flag ("!") change the meaning of width and precisiondrh2018-02-19
| | | | | from bytes to characters for the %q, %Q, and %w extensions of printf(). FossilOrigin-Name: 391540acbea34eb88c75b1152b458d8936b3fdfff47633b9ec897775b015ba4c
* In the printf() library, measure width and precision in characters ratherdrh2018-02-19
| | | | | | than bytes if the "!" (alternate-form-2) flag is present on a %s or %z substitution. FossilOrigin-Name: ca31c6630422fca70e626dd38aae96296bd8535d491ca52391624a5e7e663636
* Make it possible to use OSTRACE for multi-process testing.mistachkin2017-11-09
| | | FossilOrigin-Name: 0a7d416c4c43632725dc89cda8667cd9726b5152ee4692e4d0c9e2031e60cfb4
* Space and size optimization to the printf implementation.drh2017-08-19
| | | FossilOrigin-Name: d01d2cffefd1cdb52b386e4983599534c0fbbe6aebda186db53200e4b2283f0a
* Remove the zBase field from the StrAccum object. Resulting code is slightlydrh2017-08-12
| | | | | smaller and faster. FossilOrigin-Name: 6e52fa5fd79988a433bae0152ceae036edab4bb18d2b48ed04c1f53f141728b0
* Avoid the possibility of signed integer overflow with oversized precisionsdrh2017-03-20
| | | | | in %d conversions in the printf() implementation. FossilOrigin-Name: ef3a7c877a7549b351aafd983cfa96c863eb2641b6218bdd5cb563f659f879d8
* Add the "," flag to printf().drh2017-02-10
| | | FossilOrigin-Name: 064445b12f99f76e9a12957be97edd520ab3ae27
* Changes to the printf implementation for better performance.drh2017-01-04
| | | FossilOrigin-Name: acdb8f6f10953ed4290aadc9e026edd57d1dd21a
* Avoid passing NULL pointers to memcmp() or memcpy(), even when thedan2016-12-30
| | | | | "number-of-bytes" argument is passed 0. FossilOrigin-Name: 56ff72ab44288296efc99a608f7edc4346366a50
* Performance enhancement to sqlite3_snprintf().drh2016-11-25
| | | FossilOrigin-Name: c53dca7fadd81ea340fef776373cbb122c9ccd46
* Performance improvement in sqlite3StrAccumFinish() for the common case wheredrh2016-11-25
| | | | | no memory allocation is required. FossilOrigin-Name: b6acf5d4ef016326a079463e70e71c2fc95a352d
* Renumber internal constants in the printf() implemention for a smalldrh2016-05-05
| | | | | performance improvement. FossilOrigin-Name: 69d11447f4b1a8c536c3b6573d2a3419da870412
* Improvements to the way that OOM errors are processed.drh2016-02-05
| | | FossilOrigin-Name: c3ef03478a5788c855b3aef385d43ae7f494f440
* Simplification and size reduction to the printf logic. Remove the bFlagsdrh2016-01-30
| | | | | | parameter from sqlite3VXPrintf() and sqlite3XPrintf(). Use sqlite3XPrintf() instead of sqlite3_snprintf() for rendering P4 values in EXPLAIN output. FossilOrigin-Name: 0bdb41c45aa1cc8e5c136aaa6605d54b401483bd
* A new approach to very large sqlite3_mprintf() strings: Back out thedrh2016-01-04
| | | | | | [d655a665] check-in and instead make the size fields in StrAccum unsigned. Strings generated by sqlite3_mprintf() can now be as large as 2^31-1 bytes. FossilOrigin-Name: 7adb789f45698e5569b840d23f3f9488db3ed109
* Limit the length of sqlite3_mprintf() output to 2^30 bytes, even ifdrh2016-01-04
| | | | | SQLITE_MAX_LENGTH is set larger at compile-time. FossilOrigin-Name: d655a665acfae676d30e90e3731f483bee6acc63
* Avoid doing comparisons with pointers that might have been previously beendrh2015-12-08
| | | | | passed to realloc() and/or free(). FossilOrigin-Name: f20396adb2cff12a17a3fc90b36241ae3fdfd62a
* Changes to avoid obscure, theoretical undefined behavior. This is preventativedrh2015-12-07
| | | | | measures only - no actual problems observed on tested compilers. FossilOrigin-Name: a9e819082ba19e72db03bba37edfb7702ff489a5
* Add the SQLITE_PRINTF_PRECISION_LIMIT compile-time option.drh2015-11-30
| | | FossilOrigin-Name: ecad75d69e0d5c83dd3584d363e557e84b65f7f2
* Code simplification in sqlite3ColumnsFromExprList(). Update the %z formatdrh2015-11-14
| | | | | | code so that it works with buffers obtained from sqlite3DbMalloc(). Add a testcase for the slow column name uniquifier. FossilOrigin-Name: 9272426057b6cb2d913519ff4c97aa6e211f7d51
* Optimizations to the printf formatter.drh2015-09-02
| | | FossilOrigin-Name: a3b35ddeca8f459e81105ab6477f3c5afb9b96d5
* Use sqlite3XPrintf() instead of sqlite3StrAccumAppend() in a few placesdrh2015-09-02
| | | | | for better performance and a smaller footprint. FossilOrigin-Name: 82355e41084387fa11b7b531e4d660dd3b4cd984
* Amplify the comment on renderLogMsg() that explains the problems associateddrh2015-07-14
| | | | | with calling sqlite3_log() from deep within the memory allocator. FossilOrigin-Name: a73d7128fbca8dde5e90bd46ee915e39ae07dd1f
* Fix typo in comment. No changes to code.mistachkin2015-06-08
| | | FossilOrigin-Name: e49c291735e613e384f6da044ef865dd274cabc8
* Factor out the TreeView parse tree printing module into a separate file.drh2015-06-08
| | | FossilOrigin-Name: c32ce54ca46a4be4373983be6fd44b1f3a0250d1
* Simplifications to error message processing. Fix a possible problem in errordrh2015-05-15
| | | | | message formatting when vacuuming a database with a corrupt schema. FossilOrigin-Name: 56ef98a04765c34c1c2f3ed7a6f03a732f3b886e
* Remove four lines of superfluous code identified by clang scan-build.drh2015-05-05
| | | FossilOrigin-Name: 04afa3febee32854fbb09ef8d4ffffd432119716
* Cleanup of the sqlite3StrAccumInit() function. No functionality changes.drh2015-05-02
| | | FossilOrigin-Name: 7952c32268aa650d9ee946d5bfe190f712e3bbe6
* Use sqlite3_malloc64() in place of sqlite3_malloc() internally.drh2015-04-29
| | | FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
* Make sure the sqlite3DebugPrintf() function is defined for OSTRACE as well.mistachkin2015-04-16
| | | FossilOrigin-Name: ae5af70427e0df960a54c48cd27a6288500b1f31
* Fix a faulty assert() in the sqlite3StrAccumAppend() routine.drh2015-04-15
| | | FossilOrigin-Name: 998cfdb8dcda2cac94b83326751e16dcef8b267f
* Avoid signed integer overflow when converting oversized in-line integerdrh2015-04-07
| | | | | widths and precisions in printf(). FossilOrigin-Name: 8e4ac2ce24415926247961b00a62425ae85d6ffb
* 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