/ History for ext/misc/zipfile.c
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for ext/misc/zipfile.c

2020-01-12
22:25
[d1be54ea] part of check-in [0e468aa6] 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: [0e468aa6] user: drh branch: trunk, size: 64610)
2020-01-07
19:45
[b09f38cc] part of check-in [4c21373c] Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set the risk rank for many virtual tables. (check-in: [4c21373c] user: drh branch: new-security-options, size: 64612)
2020-01-03
16:38
[529c6e96] part of check-in [523e09bd] Improvement to check-in [7405e98225761180] so that missing or null filenames given to the zipfile extension throw an immediate error. (check-in: [523e09bd] user: drh branch: trunk, size: 64561)
2020-01-02
21:30
[442bd056] part of check-in [7405e982] Do not allow the zipfile virtual table to start a transaction if no filename has been specified. (check-in: [7405e982] user: drh branch: trunk, size: 64457)
2019-12-27
00:19
[185d060a] part of check-in [465a15c5] 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: [465a15c5] user: drh branch: trunk, size: 64416)
2019-12-24
18:53
[010d67ee] part of check-in [b9c2005f] Make the zipfile() extension function more robust against zero-length filenames. (check-in: [b9c2005f] user: drh branch: trunk, size: 64332)
2019-12-23
21:04
[46b8022d] part of check-in [cc0fb00a] Fix the zipfile() function in the zipfile extension so that it is able to deal with goofy filenames that contain embedded zeros. (check-in: [cc0fb00a] user: drh branch: trunk, size: 64309)
20:07
[dfec5589] part of check-in [953e6aa6] Remove an extra deflateInit2() call accidently left in check-in [f5ee30426e8876e7] (check-in: [953e6aa6] user: drh branch: trunk, size: 64271)
2019-12-19
15:15
[8f965eb3] part of check-in [a80f84b5] 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: [a80f84b5] user: drh branch: trunk, size: 64338)
2019-10-11
18:55
[7ad29133] part of check-in [f5ee3042] Update the zipfile extension to use deflateBound(), instead of compressBound(), to learn the maximum possible size of a deflate()d buffer. (check-in: [f5ee3042] user: dan branch: trunk, size: 64305)
2019-01-08
20:02
[c1ca8f52] part of check-in [ca67f2ec] Use 64-bit math to compute the sizes of memory allocations in extensions. (check-in: [ca67f2ec] user: drh branch: trunk, size: 64234)
2018-11-16
20:18
[1d731db3] part of check-in [5cd24e55] Add SQLITE_CONSTRAINT support to the xBestIndex methods on dbstat, sqlite_dbpage, and zipfile. (check-in: [5cd24e55] user: drh branch: trunk, size: 64162)
2018-03-23
16:31
[c4de8f0a] part of check-in [0b06ce6d] Fix minor problems with passing NULL pointers to memcmp() and memcpy() found by -fsanitize=undefined. (check-in: [0b06ce6d] user: dan branch: trunk, size: 64170)
2018-03-20
13:26
[316c7711] part of check-in [9a5ef341] Fix handling of "UPDATE OR REPLACE" statements run on zipfile virtual tables. (check-in: [9a5ef341] user: dan branch: testFixes, size: 64143)
12:12
[e8c31e8b] part of check-in [7834cf6c] Add a test case for the fix on this branch. (check-in: [7834cf6c] user: dan branch: testFixes, size: 63716)
2018-03-17
02:13
[7d0dd1cd] part of check-in [cf78a882] For 'zipfile', detect attempts to cause a duplicate entry via UPDATE. (check-in: [cf78a882] user: mistachkin branch: testFixes, size: 63655)
2018-03-10
14:17
[e4e4f828] part of check-in [8ad35d48] Add support for INSERT OR REPLACE and INSERT OR IGNORE on the zipfile extension. (check-in: [8ad35d48] user: drh branch: trunk, size: 63347)
13:21
[1e5a27b6] part of check-in [f634a7e3] Improved error messages from the zipfile extension. (check-in: [f634a7e3] user: drh branch: trunk, size: 62931)
12:53
[1a234c4e] part of check-in [16bba865] Avoid harmless left-shifts of negative numbers in the zipfile extension when building ZIP archives of files with pre-DOS dates. (check-in: [16bba865] user: drh branch: trunk, size: 62333)
12:34
[ac84e5d6] part of check-in [2a4493f4] 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: [2a4493f4] user: drh branch: trunk, size: 62263)
2018-03-09
12:46
[b326d0e7] part of check-in [bba1bfbd] Attempt to fix a harmless compiler warning from Clang. (check-in: [bba1bfbd] user: drh branch: trunk, size: 62310)
2018-02-23
13:38
[bc88dbf9] part of check-in [15c587cf] Fix harmless compiler warnings in the zipfile extension seen with MSVC. (check-in: [15c587cf] user: mistachkin branch: trunk, size: 62314)
2018-02-04
01:29
[3c3e21d0] part of check-in [ac6a3248] Move variable declaration in zipfile extension to fix MSVC compiler error. (check-in: [ac6a3248] user: mistachkin branch: trunk, size: 62277)
2018-02-02
16:28
[8aa0d3da] part of check-in [cb3feb3b] Remove the "include <io.h>" win32 dependency from the zipfile extension. (check-in: [cb3feb3b] user: dan branch: trunk, size: 62271)
16:20
[8043b5ef] part of check-in [0702fb56] Remove the time() dependency from the zipfile extension. Use SQLite VFS methods instead. (check-in: [0702fb56] user: dan branch: trunk, size: 62335)
2018-02-01
19:41
[2856e99c] part of check-in [48f1c556] 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: [48f1c556] user: dan branch: trunk, size: 61342)
15:19
[28f06977] part of check-in [e6bb7506] Fix a memory leak that could follow an IO error in the zipfile extension. And add other tests. (check-in: [e6bb7506] user: dan branch: trunk, size: 61450)
2018-01-31
19:13
[56028f7e] part of check-in [e2114df1] When creating a new archive entry, have zipfile store UTC instead of local time in the legacy MS-DOS format timestamp field. (check-in: [e2114df1] user: dan branch: zipfile-timestamp-fix, size: 61412)
2018-01-30
17:43
[aa10ec6a] part of check-in [13b786da] Add tests cases for the zipfile extension. (check-in: [13b786da] user: dan branch: trunk, size: 60503)
14:07
[ead25f06] part of check-in [81fdbe0c] Prevent users from creating zipfile() virtual tables without an argument. (check-in: [81fdbe0c] user: dan branch: trunk, size: 60227)
2018-01-29
18:41
[73d932ca] part of check-in [e364eeac] Add aggregate function zipfile() to the zipfile extension. For composing new zip archives in memory. (check-in: [e364eeac] user: dan branch: trunk, size: 61592)
2018-01-27
18:55
[398f5346] part of check-in [6ea8ba31] Fix missing header comments and other code issues in zipfile.c. (check-in: [6ea8ba31] user: dan branch: trunk, size: 54085)
16:29
[df57128d] part of check-in [e63185ed] 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: [e63185ed] user: dan branch: trunk, size: 50481)
03:26
[40195c1c] part of check-in [bed610d9] Fix compiler warnings in zipfile.c. (check-in: [bed610d9] user: drh branch: trunk, size: 48787)
2018-01-26
18:59
[071fb5af] part of check-in [029ebcd3] 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: [029ebcd3] user: dan branch: trunk, size: 48880)
2018-01-25
20:50
[45cc4216] part of check-in [30b92582] Reorganize zipfile.c code to make it easier to add support for in-memory zip archive processing. (check-in: [30b92582] user: dan branch: trunk, size: 47623)
2018-01-16
21:09
[d99efb67] part of check-in [ba44724b] Fix a problem causing zipfile to store 0 in place of the CRC32 value for uncompressed files. (check-in: [ba44724b] user: dan branch: trunk, size: 47635)
17:33
[cc12e900] part of check-in [ac9af91d] 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: [ac9af91d] user: dan branch: trunk, size: 47598)
2018-01-15
19:00
[7e48d294] part of check-in [b0b7d036] 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: [b0b7d036] user: dan branch: trunk, size: 47606)
15:49
[46171a19] part of check-in [cf640872] Fix a zipfile problem with extracting zero length files compressed using deflate. (check-in: [cf640872] user: dan branch: trunk, size: 49180)
2018-01-13
23:28
[7001d7ca] part of check-in [8f7a592f] Fix harmless compiler warnings in zipfile.c. (check-in: [8f7a592f] user: drh branch: trunk, size: 46107)
19:08
[fd05292a] part of check-in [f2d2a5df] Support UPDATE statements against zipfile virtual tables. (check-in: [f2d2a5df] user: dan branch: trunk, size: 46122)
2018-01-11
17:33
[e42d3ae7] part of check-in [931201f6] Change zipfile to be a WITHOUT ROWID virtual table and table-valued function. (check-in: [931201f6] user: dan branch: trunk, size: 44233)
14:50
[cbf9dfaf] part of check-in [4f68bed3] Minor formatting changes in zipfile.c. No logical code differences. (check-in: [4f68bed3] user: drh branch: trunk, size: 44399)
2018-01-10
19:50
[0d12ad85] part of check-in [60c694c1] Fix a harmless compiler warning in zipfile.c (check-in: [60c694c1] user: drh branch: trunk, size: 44106)
17:37
[00d78e61] part of check-in [1f099b2b] Return an SQLITE_CONSTRAINT error if an attempt is made to insert duplicate entries into a zip archive. (check-in: [1f099b2b] user: dan branch: trunk, size: 44102)
16:30
[08ec2ee0] part of check-in [94bc3c60] 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: [94bc3c60] user: dan branch: trunk, size: 43392)
2018-01-09
20:49
[92b840dc] part of check-in [0fb42090] Fix harmless compiler warnings. (check-in: [0fb42090] user: mistachkin branch: trunk, size: 42870)
20:44
[be93d2bf] part of check-in [64c9ccf6] Return SQLITE_CONSTRAINT if a user attempts to update a zipfile table. (check-in: [64c9ccf6] user: dan branch: trunk, size: 42870)
10:29
[eaab322d] part of check-in [5fed6703] Fix a zipfile problem with adding new directories to an archive. (check-in: [5fed6703] user: dan branch: trunk, size: 42799)
07:16
[b694574b] part of check-in [4fe697fa] Fix a problem in zipfile.c found by -fsanitize. (check-in: [4fe697fa] user: dan branch: trunk, size: 42115)
00:26
[9c3f5d7e] part of check-in [1adf4e60] Fix harmless compiler warnings. (check-in: [1adf4e60] user: mistachkin branch: trunk, size: 42092)
2018-01-08
19:59
[d576a5b4] part of check-in [7e7e472f] Update the zipfile module so that it matches the documentation. (check-in: [7e7e472f] user: dan branch: trunk, size: 42080)
2018-01-05
17:10
[8075df92] part of check-in [19aabccf] Fix compiler warnings. (check-in: [19aabccf] user: mistachkin branch: sqlar-shell-support, size: 40805)
2018-01-04
22:46
[d88033b4] part of check-in [335387f9] Get the shell enhancements compiling with MSVC. (check-in: [335387f9] user: mistachkin branch: sqlar-shell-support, size: 40781)
2017-12-30
18:32
[2df8f940] part of check-in [01d4e866] Have zipfile support DELETE commands. (check-in: [01d4e866] user: dan branch: sqlar-shell-support, size: 40465)
14:26
[cf093f79] part of check-in [f69e8194] Rearrange things a bit so that writing to a zipfile does not invert the order of objects it contains. (check-in: [f69e8194] user: dan branch: sqlar-shell-support, size: 38880)
2017-12-29
20:19
[d9e0b0a4] part of check-in [2dec2dec] Update ext/misc/zipfile.c to support creating and adding entries to existing zip archives. (check-in: [2dec2dec] user: dan branch: sqlar-shell-support, size: 38176)
2017-12-27
21:13
[ced1aa76] part of check-in [b64681a6] Improve the shell tool ".ar --list --verbose" command. (check-in: [b64681a6] user: dan branch: sqlar-shell-support, size: 21314)
18:54
[96148b78] part of check-in [a532a0f6] Have the shell tool ".ar --list" and ".ar --extract" commands support zip files. Currently the "-zip" switch is required. (check-in: [a532a0f6] user: dan branch: sqlar-shell-support, size: 21147)
2017-12-26
20:39
[9736694a] part of check-in [8e366b99] Add new file ext/misc/zipfile.c, containing a virtual table for read-only access to simple zip archives. (check-in: [8e366b99] user: dan branch: sqlar-shell-support, size: 19770) Added