aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
Commit message (Collapse)AuthorAge
...
* Use the sqlite3Realloc() interface internally, rather than the publicdrh2020-05-17
| | | | | | sqlite3_realloc64() equivalent, to avoid unnecessary calls to sqlite3_initialize(). FossilOrigin-Name: 1313557b512297e7b75ed748894379b2022aecf696d5a58318e46a668321c1ff
* Enhancements to long-path support in the Win32 VFS.mistachkin2020-05-15
| | | FossilOrigin-Name: 0119d96decd344ae711388ac8475b92464a6d018ecf73862170f137410036dac
* Improved rounding even on systems with an 8-byte "long double" type.drh2019-05-27
| | | FossilOrigin-Name: 15202aee150fa8e15fb90e90e5765c5e19a1eaf4896da2996a747636b76da8e6
* Improvements to rounding behavior in the round() and printf() functions.drh2019-05-24
| | | FossilOrigin-Name: 641b2d210541b4d5a1a9e57d7dcf5ce5dfd7ff4d2dc6277ba0582869f48fc946
* Improved reporting of SQLITE_TOOBIG errors while parsing.drh2019-04-09
| | | FossilOrigin-Name: ea2d4b65e20e44e19219c821bf68e97ff3af1760b3b4762250d020ba2a5a6343
* Modify sqlite3_str_finish() and sqlite3VMPrintf() so that they alwaysdrh2019-02-22
| | | | | return NULL on any OOM or SQLITE_LIMIT_LENGTH error. FossilOrigin-Name: e7144ffd21294d7aebbfa6aa5a262797a6d16de11193f1bf6b75f5f27b04c940
* Slight adjustment to the printf formatter large memory allocation detectordrh2019-02-01
| | | | | | so that it does not overestimate the amount of space needed for oversize %d conversions. FossilOrigin-Name: 1aee70d6de8a9b17ebb74a7cb1dad65139cde1b615dcce4d15d3a476fda8676b
* Prevent the printf formatter from doing large memory allocations - largerdrh2019-02-01
| | | | | | | | | than either the size of the static buffer for interfaces like sqlite3_snprintf(), or larger than SQLITE_LIMIT_LENGTH for interfaces that are associated with a database connection. This helps to prevent DOS attacks on products that let hostile sources inject arbitrary SQL. It also helps fuzzers run faster and more effectively. FossilOrigin-Name: 179e5d46054e5c86f53a79b7a0823d9a383da8391ad1d3c3b22645927a1e052b
* Performance improvement in the parsing of options to %-formats in thedrh2019-02-01
| | | | | printf implementation. FossilOrigin-Name: 40d8f8ae87abf928542c4e558a4c3a3eab18776a3e8db7ca1c5e5f744ca0bce3
* Make sure the %z optimization for printf() is not invoked if there has beendrh2018-09-13
| | | | | | a prior error (SQLITE_NOMEM or SQLITE_TOOBIG) associated with the same printf() call. FossilOrigin-Name: a2304a3474b0ca35eee0af64286ce2f7cb24d181323e128d5f04f7fe6e1c0980
* Fix a harmless compiler warning.drh2018-05-30
| | | FossilOrigin-Name: 8d02c7a6a09f7520ad180b0d943db475894cd39b0ccdb2ad2c44009d5f25c8a6
* 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