aboutsummaryrefslogtreecommitdiff
path: root/src/utf.c
Commit message (Collapse)AuthorAge
* Fix a harmless comment typodrh2025-05-19
| | | FossilOrigin-Name: c4d25acec3c1e28e5a4664a74c263cc0d00e118a6db4b26b51cb0d42d0f2b26f
* Remove an incorrect ALWAYS() macro. ↵drh2025-04-08
| | | | | [forum:/forumpost/23875495059357a2|Forum post 2025-04-08T19:16:42Z]. FossilOrigin-Name: 062cca9c63ef6d7b9a525df69391e9b032284703aeb45a18c728305dd5957c43
* Consolidate two different UTF8 encoders into a single subroutine.drh2025-02-25
| | | FossilOrigin-Name: 6208e494858b9d362efc7db4e8aac6f8e93fe51d2e038c94dfa97c55a74688a0
* Avoid the possibility of buffer overrun in the READ_UTF8 macro by usingdrh2024-10-14
| | | | | an less-than operator rather than not-equal-to. FossilOrigin-Name: 20e60bf058c54bc818ea1b8ce54ace8bcd50699734713cef622bf79e49a9a279
* Improved rebustness to malformed UTF-16 inputs to sqlite3_prepare16_v2().drh2024-09-19
| | | FossilOrigin-Name: 7b3a517b3e16ea487ca77a2c88a0c11d737de366524fc911aa1bdd6bfb7ad148
* Improvements to UTF8 handling, and especially the handling of invalid UTF8,drh2023-12-13
| | | | | in the JSON routines. FossilOrigin-Name: 1b229c1101d6c384a30f343c5e47b471ab084b2d8e81170eb8f642afc1c67e3b
* Work around a bug in clang-11.0.0.drh2020-06-04
| | | FossilOrigin-Name: 3c2bf8042ec46195c67dfd91df084f5bc19162fd26389920e716b310c80deea6
* Back out the change from [7fab1393c2b22b1f] that tries to convert invaliddrh2020-05-20
| | | | | | surrogate characters in UTF16 into the replacement character 0xfffd, as we find that this breaks some software. FossilOrigin-Name: 4218c7b71fb6b227dbe4b852718584c150164af2d84e067cb810aa602554a609
* Convert invalid surrogates to 0xfffd when translating UTF.drh2020-02-17
| | | FossilOrigin-Name: 7fab1393c2b22b1f3b159b631e06e7e0d3900850ee249c38e4d3cdd0aacf637e
* Rewrite the (debugging use only) sqlite3VdbeMemPrettyPrint() function to usedrh2020-01-06
| | | | | | | the safer StrAccum interface rather than writing directly into a static string buffer. Perhaps this will address ticket [bbd55a97e66ff50d], which we are unable to reproduce. FossilOrigin-Name: 69f6a7e42f42116d29514239575ee1dc381b5b673da012cb5f3e8cf17922d493
* Fix an obsolete comment and other minor issues from code inspection.drh2019-04-14
| | | FossilOrigin-Name: cd084427319394386844d6651479256a2fd57a412fccb79ba53172ce76693eb1
* Compile cleanly with SQLITE_OMIT_UTF16.drh2017-07-12
| | | FossilOrigin-Name: 783100b801703577e35ec12fe7623e1797e49699f3b8deb0694ef061a142b844
* Enhance ability to debug out-of-memory errors.mistachkin2016-02-13
| | | FossilOrigin-Name: 6a9c4a3ebfb7cc0738ef6634440ccab44a21ff28
* A different way to clear the subtype on VDBE registers when the value of the ↵dan2016-01-30
| | | | | register is overwritten with new content. To fix [[f45ac567eaa9f93]. FossilOrigin-Name: 2e9fb1295cd31fc29c97444c3dec82fef68e939f
* Avoid a harmless compiler warning on systems where the byteorder cannotdrh2015-12-24
| | | | | be determined at compile-time. FossilOrigin-Name: 7c7b7f26306b6aa6ff35b871ad756f43f5db9838
* Add the Mem.szMalloc element to the Mem object and use it to keep track ofdrh2014-09-18
| | | | | the size of the Mem.zMalloc allocation. FossilOrigin-Name: 9c09ac353df6041808cace41880f4729ee73f5e1
* Continuing cleanup of memory register memory allocation handling.drh2014-09-16
| | | FossilOrigin-Name: 2598aedc5dd2bac67e2e518a31f2803e469c2ba6
* The sqlite3VdbeChangeEncoding() routine goes about 3x faster if thedrh2014-08-24
| | | | | sqlite3VdbeMemTranslate() subroutine is not inlined. FossilOrigin-Name: 0c7e1b875a14ff9d71af7bb125a0272a23d57353
* Fix a comment on the sqlite3Utf8Read() routine. No changes to code.drh2014-06-18
| | | FossilOrigin-Name: 5e514f6acebcfad4f18300d1a34f4917f1a746d9
* Change the MEM_Dyn flag so that it means that Mem.xDel exists and must bedrh2014-03-01
| | | | | used to free the string or blob. Add tighter invariant checks on Mem. FossilOrigin-Name: 44e1c33767cae3bf2cbd2238831fe67197009b43
* Remove the unused sqlite3Utf8to16() utility function.drh2013-08-07
| | | FossilOrigin-Name: 9159b43eb2cb5d6ed18a5ad168fa27134fec2553
* Begin adding experimental sqlite_stat4 table. This commit is buggy.dan2013-08-03
| | | FossilOrigin-Name: 2beea303a1d609cd2ff252412c50b966b9e5e8f1
* Remove an unnecessary parameter from sqlite3Utf8Read() resulting in a slightdrh2012-09-17
| | | | | performance increase. FossilOrigin-Name: 8b962c94a2f829f71efdd0ca770469b02feea3e1
* Begin a branch that experimentally replaces sqlite_stat2 with a new tabledrh2011-08-12
| | | | | | called sqlite_stat3 that will hopefully facilitate better query planning decisions. FossilOrigin-Name: 52e1d7e8ddd4bb5ef3a9d00fd2d719a8a784f807
* Use only unsigned values in the implementatin of LIKE and GLOB so thatdrh2011-06-13
| | | | | values won't overflow to negative when dealing with malformed UTF8. FossilOrigin-Name: 77f01578bb565d1bc884b374b68bae10ce34a084
* Minor change to sqlite3Utf8Read() to make consistent with READ_UTF8() usage ↵shaneh2011-03-24
| | | | | | | and avoid implementation defined usages of <<. Added some additional UTF-8 test cases. FossilOrigin-Name: 7173b3929fae4e678223b0e978a2da7fa50a9005
* Modify the vdbe so that the comparison operator opcodes do not modify the ↵dan2010-03-05
| | | | | data type of operands. Fix for [aa92c76cd4]. FossilOrigin-Name: 8858042fa1449516a2c7dbb991dca3eb6c5794cb
* Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh2009-11-10
| | | FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
* Another attempt at getting the pTail pointer computations correct fordrh2009-10-24
| | | | | sqlite3_prepare16(). Ticket [3fe897352e]. FossilOrigin-Name: a96b4e8c01d167d35b9ec08ee6603e52ead601b6
* Check-in [19064d7cea] broke the pTail return on sqlite3_prepare16() whendrh2009-10-24
| | | | | | the SQL contained surrogates. This check-in restores correct function. Part of ticket [3fe897352e]. FossilOrigin-Name: 65b1e3a4c31f6cb6fd3f600701658b0cdbee603f
* Make sure that UTF16 to UTF8 conversions to not read past the end of thedrh2009-10-23
| | | | | | UTF16 input buffer if the last two bytes of the UTF16 happen to be the first half of a surrogate pair. Ticket [3fe897352e] FossilOrigin-Name: 19064d7cea838e1a93fe63743ed247f440679e97
* Warning cleanup from the MSVC compile.shane2009-09-07
| | | FossilOrigin-Name: 26cd015c0ee1c18dd37f11b47ce35cfa320b3514
* Add the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the ↵dan2009-08-19
| | | | | stat2 table is not created, populated, or used. FossilOrigin-Name: 362665e89c21fd603d9f8ad6c0ead590e885af7c
* First version of sqlite_stat2 (schema forces exactly 10 samples).dan2009-08-17
| | | FossilOrigin-Name: dd96bda2a85c1d94fb4a0bf5f27e2977f7f7e42e
* Fix a bug in the sqlite3Utf16ByteLen() function so that it computes thedrh2009-04-01
| | | | | | correct length even for strings that contain surrogate pairs. Ticket #3766. (CVS 6427) FossilOrigin-Name: 766bb7e59c28884e40ce13e3fc55c870d06d7e34
* Remove dead code from the UTF conversion routines. Fix a bug indrh2009-04-01
| | | | | | sqlite3_prepare16_v2() in which an out-of-memory error fails to set the statement return pointer to NULL. (CVS 6423) FossilOrigin-Name: 94e2f815ebb38981a2226d8aed9f3731f8833f7c
* Fix compiler warnings from gcc and MSVC; Correct typo in select.c; (CVS 6417)shane2009-03-31
| | | FossilOrigin-Name: 768514179a63783c4e70b931d1697403c04bedf5
* Work to remove harmless MSVC compiler warnings. (CVS 6013)shane2008-12-10
| | | FossilOrigin-Name: 715dcd52c1372c62873cff5db97fdbdfce617808
* Never use strlen(). Use our own internal sqlite3Strlen30() which isdrh2008-12-10
| | | | | | guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
* Get rid of more silly compiler warnings. (CVS 5996)drh2008-12-09
| | | FossilOrigin-Name: 59ae0020683766993c38e2b76a436d78d3e4bd63
* Some minor name refactoring in where.c. Avoid declaring variables beforedrh2008-12-08
| | | | | initializing them in the amalgamation because VC++ doesn't like that. (CVS 5993) FossilOrigin-Name: 6ed696e7c03351514278338fa986539cf0fac178
* Prevent buffer overruns when converting malformed UTF16 to UTF8. Ticket ↵drh2008-11-07
| | | | | #3482. (CVS 5869) FossilOrigin-Name: 3f657e88767f60d305dd6151e7aa54363341d052
* Fix further warnings/compilation errors in test code. (CVS 5558)danielk19772008-08-12
| | | FossilOrigin-Name: 42247b917ae5a5c0d81b934200810755d0040282
* Fix warnings and a compilation error in test code. (CVS 5556)danielk19772008-08-12
| | | FossilOrigin-Name: 80c129e63ec7dbed3de1e485dffea96fae40aa6d
* Use a macro to make sure that the calls to sqlite3Utf8Read() from ↵danielk19772008-07-29
| | | | | MemTranslate() are inlined. This speeds up converting from utf8 to utf16. (CVS 5492) FossilOrigin-Name: 78a623bbb17e35bcb902d3ea1d0b963570588d2d
* Changed copy-paste error in comment. Fixes #3193. (CVS 5323)mihailim2008-06-27
| | | FossilOrigin-Name: 00eee53e8626591c4a0c61fe35735ec95ab3ef72
* Changes to the Mem structure to reduce the frequency of freeing and ↵danielk19772008-03-28
| | | | | reallocating the dynamic buffer. (CVS 4928) FossilOrigin-Name: d0bf73d81453da1d8e602e0445064d9f5e348063
* Where possible, avoid freeing buffers allocated for vdbe memory cells in ↵danielk19772008-02-13
| | | | | case they can be reused. (CVS 4783) FossilOrigin-Name: 990237e27e417aff3dbf05784b716c21f3761a3a
* Add automatic recovery from the pager "error-state". Also add a new error ↵danielk19772007-10-03
| | | | | code - SQLITE_IOERR_NOMEM. (CVS 4454) FossilOrigin-Name: 12eca32a6a3d68d5b20eed03afdffe7599e66014
* Fixes for compilation/testing when the various OMIT macros are defined. (CVS ↵danielk19772007-09-12
| | | | | 4423) FossilOrigin-Name: c8405b15c074c94dab5e33272cf1471f458d11df