Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
History for ext/misc/zipfile.c
2024-09-25
| ||
15:26 | [b62147ac49] part of check-in [74bbb2b2b4] Have the zipfile and fileio extensions use sqlite3_stdio.c when it is available - such as when those extensions are preloaded into the CLI. (check-in: [74bbb2b2b4] user: drh branch: cli-stdlib, size: 66135) | |
2024-06-04
| ||
19:21 | [5a3bf1b9cc] part of check-in [93ac8573ee] Fix harmless compiler warnings seen with MSVC. (check-in: [93ac8573ee] user: mistachkin branch: trunk, size: 65862) | |
2023-10-25
| ||
18:35 | [64cb3d98b6] part of check-in [7b3f866e61] Fix minor problems with the "showwal" utility program. Add a missing header to the zipfile.c extension. (check-in: [7b3f866e61] user: drh branch: trunk, size: 65828) | |
2023-10-06
| ||
12:51 | [59af123b45] part of check-in [f3b3d712d6] Ensure that all fields of static sqlite3_module objects are explicitly initialized, in order to hush-up nuisance compiler warnings. (check-in: [f3b3d712d6] user: drh branch: trunk, size: 65808) | |
2023-05-03
| ||
07:30 | [b1f36004c1] part of check-in [1b489d008b] In the zipfile extension, leave the catalog list in a consistent state when the last entry is removed from the list. forum post f03f1e4c5a5c9959. (check-in: [1b489d008b] user: drh branch: trunk, size: 65760) | |
2023-04-06
| ||
00:59 | [b9d615e1d9] part of check-in [46db2e42a5] In the zipfile extension, defend against corrupt ZIP files that contain a zero-length filename. Forum post b15f5e3ad8. (check-in: [46db2e42a5] user: drh branch: trunk, size: 65494) | |
2023-01-05
| ||
01:29 | [928ccb773d] part of check-in [e4de577757] In the zipfile extension (which is not part of the SQLite amalgamation, but which is included in the CLI by default) ensure that fopen() is not invoked using a NULL filename. Fix for the issue reported by forum post d1c96a9032e564f8. (check-in: [e4de577757] user: drh branch: branch-3.40, size: 65340) | |
01:26 | [f982392614] part of check-in [d32757ddf5] In the zipfile extension (which is not part of the SQLite amalgamation, but which is included in the CLI by default) ensure that fopen() is not invoked using a NULL filename. Fix for the issue reported by forum post d1c96a9032e564f8. (check-in: [d32757ddf5] user: drh branch: trunk, size: 65444) | |
2022-12-23
| ||
14:49 | [bc4f8c552c] part of check-in [c14bbe1606] Fix lots of harmless, nuisance compiler warnings, mostly unused parameter warnings in extensions. (check-in: [c14bbe1606] user: drh branch: trunk, size: 65432) | |
2022-07-22
| ||
20:24 | [b7bd56f903] part of check-in [57beb700c0] Add experimental 'xShadowName2' method for virtual table modules. (check-in: [57beb700c0] user: mistachkin branch: xShadowName2, size: 65378) | |
2022-03-19
| ||
12:53 | [3e76c6c3f7] part of check-in [b75c6bad3a] Fix the zipfile extension so that it knows that a zero-length BLOB returns a NULL pointer. Forum post ae86934905. (check-in: [b75c6bad3a] user: drh branch: branch-3.38, size: 65138) | |
12:48 | [22afe121d1] part of check-in [5f6d56737c] Fix the zipfile extension so that it knows that a zero-length BLOB returns a NULL pointer. Forum post ae86934905. (check-in: [5f6d56737c] user: drh branch: trunk, size: 65328) | |
2022-03-08
| ||
13:59 | [c4e2d12b35] part of check-in [5e30c6ea70] Fix compiler warnings. (check-in: [5e30c6ea70] user: drh branch: trunk, size: 65222) | |
2021-12-01
| ||
11:03 | [238ccb990e] part of check-in [8c98678254] Add the "static" qualifier to some internal functions in code for various SQLite extensions. (check-in: [8c98678254] user: dan branch: trunk, size: 65032) | |
2021-10-04
| ||
18:21 | [5dcbbdae13] part of check-in [1c67f957fc] Fix harmless static analyzer warnings in sessions, rtree, fts3 and fts5. Add the -DSQLITE_OMIT_AUXILIARY_SAFETY_CHECKS compile-time option to cause ALWAYS() and NEVER() macros to be omitted from the build. (check-in: [1c67f957fc] user: drh branch: fix-warnings, size: 65018) | |
2021-10-02
| ||
16:39 | [9078475440] part of check-in [bdb9dc8a02] Fix harmless compiler warnings (check-in: [bdb9dc8a02] user: drh branch: trunk, size: 64915) | |
2021-10-01
| ||
21:01 | [f01cc496f0] part of check-in [94b59691ee] Fix harmless compiler warnings. (check-in: [94b59691ee] user: drh branch: trunk, size: 64889) | |
2021-06-15
| ||
15:15 | [b7261ef6db] part of check-in [272a15b9f4] Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictly necessary. There are no vulnerabilities here. However, adding these checks avoids unnecessary static analyzer complaints. Forum post ce1193be15. (check-in: [272a15b9f4] user: drh branch: trunk, size: 64873) | |
2021-04-22
| ||
14:43 | [acbad31bd9] part of check-in [c8de5f0613] Fix the date/time translation logic in the zipfile extension so that it works with boundary cases. See forum post d82289d69f for the trouble report. (check-in: [c8de5f0613] user: drh branch: trunk, size: 64847) | |
13:59 | [5fe27e5dd6] part of check-in [f1f2a49007] Ensure that the typedefs for specific-length integers in zipfile.c are correct. (check-in: [f1f2a49007] user: drh branch: trunk, size: 65109) | |
2020-08-29
| ||
19:00 | [e35e035bc2] part of check-in [ded1a75b3c] Fix a sanitizer warning in zipfile.c. (check-in: [ded1a75b3c] user: dan branch: trunk, size: 64657) | |
2020-07-29
| ||
16:18 | [acc08fec61] part of check-in [a80ae2c98b] Dozens and dozens of typo fixes in comments. This change adds no value to the end product and is disruptive, so it is questionable whether or not it will ever land on trunk. (check-in: [a80ae2c98b] user: drh branch: typos, size: 64608) | |
2020-01-12
| ||
22:25 | [d1be54ea83] part of check-in [0e468aa6de] Change the zipfile virtual table so that the xBestIndex method gives a reasonable cost estimate even if no filename is specified. The missing filename error continues to be raised in the xFilter method. Meanwhile, the more reasonable cost estimate avoids unnecessary wierdness in the query planner. (check-in: [0e468aa6de] user: drh branch: trunk, size: 64610) | |
2020-01-07
| ||
19:45 | [b09f38ccd4] part of check-in [4c21373c21] Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set the risk rank for many virtual tables. (check-in: [4c21373c21] user: drh branch: new-security-options, size: 64612) | |
2020-01-03
| ||
16:38 | [529c6e962e] part of check-in [523e09bd22] Improvement to check-in [7405e98225761180] so that missing or null filenames given to the zipfile extension throw an immediate error. (check-in: [523e09bd22] user: drh branch: trunk, size: 64561) | |
2020-01-02
| ||
21:30 | [442bd05669] part of check-in [7405e98225] Do not allow the zipfile virtual table to start a transaction if no filename has been specified. (check-in: [7405e98225] user: drh branch: trunk, size: 64457) | |
2019-12-27
| ||
00:19 | [185d060a59] part of check-in [465a15c5c2] Fix buffer underflows in the zipfile extension associated with zero-length or NULL filename in the ZIP archive. But report on the mailing list by Yongheng and Rui. (check-in: [465a15c5c2] user: drh branch: trunk, size: 64416) | |
2019-12-24
| ||
18:53 | [010d67eeca] part of check-in [b9c2005f02] Make the zipfile() extension function more robust against zero-length filenames. (check-in: [b9c2005f02] user: drh branch: trunk, size: 64332) | |
2019-12-23
| ||
21:04 | [46b8022d5c] part of check-in [cc0fb00a12] Fix the zipfile() function in the zipfile extension so that it is able to deal with goofy filenames that contain embedded zeros. (check-in: [cc0fb00a12] user: drh branch: trunk, size: 64309) | |
20:07 | [dfec558939] part of check-in [953e6aa6d9] Remove an extra deflateInit2() call accidently left in check-in [f5ee30426e8876e7] (check-in: [953e6aa6d9] user: drh branch: trunk, size: 64271) | |
2019-12-19
| ||
15:15 | [8f965eb309] part of check-in [a80f84b511] Fix the zipfile extension so that INSERT works even if the pathname of the file being inserted is a NULL. Bug discovered by the Yongheng and Rui fuzzer. (check-in: [a80f84b511] user: drh branch: trunk, size: 64338) | |
2019-10-11
| ||
18:55 | [7ad29133e3] part of check-in [f5ee30426e] Update the zipfile extension to use deflateBound(), instead of compressBound(), to learn the maximum possible size of a deflate()d buffer. (check-in: [f5ee30426e] user: dan branch: trunk, size: 64305) | |
2019-01-08
| ||
20:02 | [c1ca8f5233] part of check-in [ca67f2ec0e] Use 64-bit math to compute the sizes of memory allocations in extensions. (check-in: [ca67f2ec0e] user: drh branch: trunk, size: 64234) | |
2018-11-16
| ||
20:18 | [1d731db326] part of check-in [5cd24e552b] Add SQLITE_CONSTRAINT support to the xBestIndex methods on dbstat, sqlite_dbpage, and zipfile. (check-in: [5cd24e552b] user: drh branch: trunk, size: 64162) | |
2018-03-23
| ||
16:31 | [c4de8f0ad4] part of check-in [0b06ce6d8e] Fix minor problems with passing NULL pointers to memcmp() and memcpy() found by -fsanitize=undefined. (check-in: [0b06ce6d8e] user: dan branch: trunk, size: 64170) | |
2018-03-20
| ||
13:26 | [316c771140] part of check-in [9a5ef341de] Fix handling of "UPDATE OR REPLACE" statements run on zipfile virtual tables. (check-in: [9a5ef341de] user: dan branch: testFixes, size: 64143) | |
12:12 | [e8c31e8be9] part of check-in [7834cf6c28] Add a test case for the fix on this branch. (check-in: [7834cf6c28] user: dan branch: testFixes, size: 63716) | |
2018-03-17
| ||
02:13 | [7d0dd1cdd0] part of check-in [cf78a88279] For 'zipfile', detect attempts to cause a duplicate entry via UPDATE. (check-in: [cf78a88279] user: mistachkin branch: testFixes, size: 63655) | |
2018-03-10
| ||
14:17 | [e4e4f8289a] part of check-in [8ad35d483e] Add support for INSERT OR REPLACE and INSERT OR IGNORE on the zipfile extension. (check-in: [8ad35d483e] user: drh branch: trunk, size: 63347) | |
13:21 | [1e5a27b6cf] part of check-in [f634a7e386] Improved error messages from the zipfile extension. (check-in: [f634a7e386] user: drh branch: trunk, size: 62931) | |
12:53 | [1a234c4e82] part of check-in [16bba8650c] Avoid harmless left-shifts of negative numbers in the zipfile extension when building ZIP archives of files with pre-DOS dates. (check-in: [16bba8650c] user: drh branch: trunk, size: 62333) | |
12:34 | [ac84e5d657] part of check-in [2a4493f4ad] Fix the zipfile extension so that it is able to create symbolic link entries in the ZIP file even on systems like Win32 that do not support symbolic links on the native filesystem. (check-in: [2a4493f4ad] user: drh branch: trunk, size: 62263) | |
2018-03-09
| ||
12:46 | [b326d0e789] part of check-in [bba1bfbde6] Attempt to fix a harmless compiler warning from Clang. (check-in: [bba1bfbde6] user: drh branch: trunk, size: 62310) | |
2018-02-23
| ||
13:38 | [bc88dbf9aa] part of check-in [15c587cf6f] Fix harmless compiler warnings in the zipfile extension seen with MSVC. (check-in: [15c587cf6f] user: mistachkin branch: trunk, size: 62314) | |
2018-02-04
| ||
01:29 | [3c3e21d035] part of check-in [ac6a32482e] Move variable declaration in zipfile extension to fix MSVC compiler error. (check-in: [ac6a32482e] user: mistachkin branch: trunk, size: 62277) | |
2018-02-02
| ||
16:28 | [8aa0d3da5c] part of check-in [cb3feb3bc3] Remove the "include <io.h>" win32 dependency from the zipfile extension. (check-in: [cb3feb3bc3] user: dan branch: trunk, size: 62271) | |
16:20 | [8043b5efef] part of check-in [0702fb5611] Remove the time() dependency from the zipfile extension. Use SQLite VFS methods instead. (check-in: [0702fb5611] user: dan branch: trunk, size: 62335) | |
2018-02-01
| ||
19:41 | [2856e99ce4] part of check-in [48f1c55699] Fix a problem triggered when a zipfile virtual table is created and written to within the same transaction. And add other zipfile tests. (check-in: [48f1c55699] user: dan branch: trunk, size: 61342) | |
15:19 | [28f0697729] part of check-in [e6bb750697] Fix a memory leak that could follow an IO error in the zipfile extension. And add other tests. (check-in: [e6bb750697] user: dan branch: trunk, size: 61450) | |
2018-01-31
| ||
19:13 | [56028f7e74] part of check-in [e2114df183] When creating a new archive entry, have zipfile store UTC instead of local time in the legacy MS-DOS format timestamp field. (check-in: [e2114df183] user: dan branch: zipfile-timestamp-fix, size: 61412) | |
2018-01-30
| ||
17:43 | [aa10ec6a23] part of check-in [13b786dafd] Add tests cases for the zipfile extension. (check-in: [13b786dafd] user: dan branch: trunk, size: 60503) | |
14:07 | [ead25f062c] part of check-in [81fdbe0cc5] Prevent users from creating zipfile() virtual tables without an argument. (check-in: [81fdbe0cc5] user: dan branch: trunk, size: 60227) | |
2018-01-29
| ||
18:41 | [73d932caf6] part of check-in [e364eeac76] Add aggregate function zipfile() to the zipfile extension. For composing new zip archives in memory. (check-in: [e364eeac76] user: dan branch: trunk, size: 61592) | |
2018-01-27
| ||
18:55 | [398f53469e] part of check-in [6ea8ba312c] Fix missing header comments and other code issues in zipfile.c. (check-in: [6ea8ba312c] user: dan branch: trunk, size: 54085) | |
16:29 | [df57128d9a] part of check-in [e63185edfe] If a zipfile virtual table is created with no argument - "CREATE VIRTUAL TABLE zzz USING zipfile()" - accumulate data in memory. Support "SELECT zipfile_blob(z) FROM zzz LIMIT 1" to retrieve a zip archive image. (check-in: [e63185edfe] user: dan branch: trunk, size: 50481) | |
03:26 | [40195c1cfb] part of check-in [bed610d99b] Fix compiler warnings in zipfile.c. (check-in: [bed610d99b] user: drh branch: trunk, size: 48787) | |
2018-01-26
| ||
18:59 | [071fb5af4d] part of check-in [029ebcd30c] If the argument to table function zipfile() is a blob (not text), assume that it contains a zip file image to interpret, not the name of a file on disk. (check-in: [029ebcd30c] user: dan branch: trunk, size: 48880) | |
2018-01-25
| ||
20:50 | [45cc421644] part of check-in [30b9258294] Reorganize zipfile.c code to make it easier to add support for in-memory zip archive processing. (check-in: [30b9258294] user: dan branch: trunk, size: 47623) | |
2018-01-16
| ||
21:09 | [d99efb67ec] part of check-in [ba44724bcc] Fix a problem causing zipfile to store 0 in place of the CRC32 value for uncompressed files. (check-in: [ba44724bcc] user: dan branch: trunk, size: 47635) | |
17:33 | [cc12e900e1] part of check-in [ac9af91d5a] Change a cat in zipfile.c from (z_const Bytef*) to just (Bytef*). This allows the module to build with older versions of zlib. (check-in: [ac9af91d5a] user: dan branch: trunk, size: 47598) | |
2018-01-15
| ||
19:00 | [7e48d2947a] part of check-in [b0b7d0363a] Fix a problem in the zipfile module causing it to generate incorrect checksums. Remove the ability to insert compressed data into a zip archive. (check-in: [b0b7d0363a] user: dan branch: trunk, size: 47606) | |
15:49 | [46171a1943] part of check-in [cf64087224] Fix a zipfile problem with extracting zero length files compressed using deflate. (check-in: [cf64087224] user: dan branch: trunk, size: 49180) | |
2018-01-13
| ||
23:28 | [7001d7ca73] part of check-in [8f7a592f8c] Fix harmless compiler warnings in zipfile.c. (check-in: [8f7a592f8c] user: drh branch: trunk, size: 46107) | |
19:08 | [fd05292abc] part of check-in [f2d2a5df4f] Support UPDATE statements against zipfile virtual tables. (check-in: [f2d2a5df4f] user: dan branch: trunk, size: 46122) | |
2018-01-11
| ||
17:33 | [e42d3ae795] part of check-in [931201f64e] Change zipfile to be a WITHOUT ROWID virtual table and table-valued function. (check-in: [931201f64e] user: dan branch: trunk, size: 44233) | |
14:50 | [cbf9dfaf94] part of check-in [4f68bed3b9] Minor formatting changes in zipfile.c. No logical code differences. (check-in: [4f68bed3b9] user: drh branch: trunk, size: 44399) | |
2018-01-10
| ||
19:50 | [0d12ad852a] part of check-in [60c694c1ab] Fix a harmless compiler warning in zipfile.c (check-in: [60c694c1ab] user: drh branch: trunk, size: 44106) | |
17:37 | [00d78e61f0] part of check-in [1f099b2b45] Return an SQLITE_CONSTRAINT error if an attempt is made to insert duplicate entries into a zip archive. (check-in: [1f099b2b45] user: dan branch: trunk, size: 44102) | |
16:30 | [08ec2ee009] part of check-in [94bc3c60e7] Have the zipfile module automatically append "/" to directory names that do not already end with such a character. This is required for info-zip compatibility. (check-in: [94bc3c60e7] user: dan branch: trunk, size: 43392) | |
2018-01-09
| ||
20:49 | [92b840dc16] part of check-in [0fb42090cb] Fix harmless compiler warnings. (check-in: [0fb42090cb] user: mistachkin branch: trunk, size: 42870) | |
20:44 | [be93d2bf94] part of check-in [64c9ccf6c5] Return SQLITE_CONSTRAINT if a user attempts to update a zipfile table. (check-in: [64c9ccf6c5] user: dan branch: trunk, size: 42870) | |
10:29 | [eaab322dd4] part of check-in [5fed67033c] Fix a zipfile problem with adding new directories to an archive. (check-in: [5fed67033c] user: dan branch: trunk, size: 42799) | |
07:16 | [b694574b71] part of check-in [4fe697fa6c] Fix a problem in zipfile.c found by -fsanitize. (check-in: [4fe697fa6c] user: dan branch: trunk, size: 42115) | |
00:26 | [9c3f5d7ebe] part of check-in [1adf4e6039] Fix harmless compiler warnings. (check-in: [1adf4e6039] user: mistachkin branch: trunk, size: 42092) | |
2018-01-08
| ||
19:59 | [d576a5b473] part of check-in [7e7e472fa9] Update the zipfile module so that it matches the documentation. (check-in: [7e7e472fa9] user: dan branch: trunk, size: 42080) | |
2018-01-05
| ||
17:10 | [8075df9296] part of check-in [19aabccfe3] Fix compiler warnings. (check-in: [19aabccfe3] user: mistachkin branch: sqlar-shell-support, size: 40805) | |
2018-01-04
| ||
22:46 | [d88033b474] part of check-in [335387f9e0] Get the shell enhancements compiling with MSVC. (check-in: [335387f9e0] user: mistachkin branch: sqlar-shell-support, size: 40781) | |
2017-12-30
| ||
18:32 | [2df8f94003] part of check-in [01d4e866fb] Have zipfile support DELETE commands. (check-in: [01d4e866fb] user: dan branch: sqlar-shell-support, size: 40465) | |
14:26 | [cf093f7973] part of check-in [f69e8194bf] Rearrange things a bit so that writing to a zipfile does not invert the order of objects it contains. (check-in: [f69e8194bf] user: dan branch: sqlar-shell-support, size: 38880) | |
2017-12-29
| ||
20:19 | [d9e0b0a4fd] part of check-in [2dec2dec59] Update ext/misc/zipfile.c to support creating and adding entries to existing zip archives. (check-in: [2dec2dec59] user: dan branch: sqlar-shell-support, size: 38176) | |
2017-12-27
| ||
21:13 | [ced1aa7689] part of check-in [b64681a644] Improve the shell tool ".ar --list --verbose" command. (check-in: [b64681a644] user: dan branch: sqlar-shell-support, size: 21314) | |
18:54 | [96148b78b5] part of check-in [a532a0f6fd] Have the shell tool ".ar --list" and ".ar --extract" commands support zip files. Currently the "-zip" switch is required. (check-in: [a532a0f6fd] user: dan branch: sqlar-shell-support, size: 21147) | |
2017-12-26
| ||
20:39 | Added: [9736694a5e] part of check-in [8e366b99b1] Add new file ext/misc/zipfile.c, containing a virtual table for read-only access to simple zip archives. (check-in: [8e366b99b1] user: dan branch: sqlar-shell-support, size: 19770) | |