Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static int | add_data (zip_t *, zip_source_t *, zip_dirent_t *, zip_uint32_t) |
static int | copy_data (zip_t *, zip_uint64_t) |
static int | copy_source (zip_t *, zip_source_t *, zip_int64_t) |
static int | write_cdir (zip_t *, const zip_filelist_t *, zip_uint64_t) |
static int | write_data_descriptor (zip_t *za, const zip_dirent_t *dirent, int is_zip64) |
ZIP_EXTERN int | zip_close (zip_t *za) |
int | _zip_changed (const zip_t *za, zip_uint64_t *survivorsp) |
int _zip_changed | ( | const zip_t * | za, |
zip_uint64_t * | survivorsp | ||
) |
Definition at line 655 of file zip_close.c.
References zip::ch_flags, zip::comment_changed, zip_entry::deleted, zip::entry, zip::flags, i, zip::nentry, za, and ZIP_ENTRY_HAS_CHANGES.
Referenced by zip_close(), and zip_set_archive_flag().
|
static |
Definition at line 288 of file zip_close.c.
References _zip_dirent_apply_attributes(), _zip_dirent_write(), _zip_error_set_from_source(), _zip_get_compression_algorithm(), _zip_get_encryption_implementation(), _zip_source_window_new(), zip_dirent::bitflags, zip_dirent::changed, zip_stat::comp_method, zip_dirent::comp_method, zip_stat::comp_size, zip_dirent::comp_size, zip_dirent::compression_level, copy_source(), zip_stat::crc, zip_dirent::crc, zip::default_password, zip_stat::encryption_method, zip_dirent::encryption_method, zip::error, flags, if(), zip_dirent::last_mod, zip_compression_algorithm::maximum_compressed_size, zip_stat::mtime, NULL, zip_dirent::password, SEEK_SET, zip_stat::size, zip::src, src, time, zip_dirent::uncomp_size, zip_stat::valid, write_data_descriptor(), za, ZIP_CM_ACTUAL, ZIP_CM_IS_DEFAULT, ZIP_CM_STORE, ZIP_CODEC_DECODE, ZIP_CODEC_ENCODE, ZIP_DIRENT_LAST_MOD, ZIP_DIRENT_PASSWORD, ZIP_EF_LOCAL, ZIP_EM_NONE, ZIP_EM_TRAD_PKWARE, ZIP_ER_ENCRNOTSUPP, ZIP_ER_INTERNAL, zip_error_set(), ZIP_FL_FORCE_ZIP64, ZIP_GPBF_DATA_DESCRIPTOR, zip_source_compress(), zip_source_crc_create(), zip_source_decompress(), zip_source_free(), zip_source_get_file_attributes(), zip_source_keep(), zip_source_seek_write(), zip_source_stat(), zip_source_tell_write(), ZIP_STAT_COMP_METHOD, ZIP_STAT_COMP_SIZE, ZIP_STAT_CRC, ZIP_STAT_ENCRYPTION_METHOD, zip_stat_init(), ZIP_STAT_MTIME, ZIP_STAT_SIZE, and ZIP_UINT64_MAX.
Referenced by zip_close().
|
static |
Definition at line 556 of file zip_close.c.
References _zip_progress_update(), _zip_read(), _zip_write(), BUFSIZE, byte_array_fini, byte_array_init, DEFINE_BYTE_ARRAY, zip::error, len, n, zip::progress, zip::src, za, ZIP_ER_CANCELLED, ZIP_ER_MEMORY, and zip_error_set().
Referenced by zip_close().
|
static |
Definition at line 592 of file zip_close.c.
References _zip_error_set_from_source(), _zip_progress_update(), _zip_write(), BUFSIZE, byte_array_fini, byte_array_init, DEFINE_BYTE_ARRAY, zip::error, n, zip::progress, src, za, ZIP_ER_CANCELLED, ZIP_ER_MEMORY, zip_error_set(), zip_source_close(), zip_source_open(), and zip_source_read().
Referenced by add_data().
|
static |
Definition at line 637 of file zip_close.c.
References _zip_cdir_write(), zip::src, za, and zip_source_tell_write().
Referenced by zip_close().
|
static |
Definition at line 683 of file zip_close.c.
References _zip_buffer_data(), _zip_buffer_free(), _zip_buffer_new(), _zip_buffer_offset(), _zip_buffer_ok(), _zip_buffer_put(), _zip_buffer_put_32(), _zip_buffer_put_64(), _zip_write(), zip_dirent::comp_size, zip_dirent::crc, DATADES_MAGIC, zip::error, MAX_DATA_DESCRIPTOR_LENGTH, NULL, zip_dirent::uncomp_size, za, ZIP_ER_INTERNAL, ZIP_ER_MEMORY, and zip_error_set().
Referenced by add_data(), and zip_close().
ZIP_EXTERN int zip_close | ( | zip_t * | za | ) |
Definition at line 52 of file zip_close.c.
References _zip_changed(), _zip_dirent_clone(), _zip_dirent_needs_zip64(), _zip_dirent_write(), _zip_error_set_from_source(), _zip_file_get_end(), _zip_file_get_offset(), _zip_progress_end(), _zip_progress_start(), _zip_progress_subrange(), _zip_read_local_ef(), _zip_source_zip_new(), add_data(), zip_dirent::bitflags, zip_dirent::comp_size, copy_data(), zip_entry::deleted, zip_dirent::encryption_method, ENOENT, zip::entry, zip::error, error(), free(), i, zip_filelist::idx, malloc(), zip::nentry, NULL, off, zip_dirent::offset, zip::open_flags, zip_entry::orig, zip::progress, SEEK_SET, zip::src, write_cdir(), write_data_descriptor(), za, ZIP_DIRENT_COMP_METHOD, ZIP_DIRENT_ENCRYPTION_METHOD, zip_discard(), ZIP_EM_TRAD_PKWARE, ZIP_ENTRY_CHANGED, ZIP_ENTRY_DATA_CHANGED, ZIP_ENTRY_HAS_CHANGES, ZIP_ER_CANCELLED, ZIP_ER_INTERNAL, ZIP_ER_MEMORY, ZIP_ER_REMOVE, zip_error_code_system(), zip_error_code_zip(), zip_error_set(), ZIP_FL_LOCAL, ZIP_FL_UNCHANGED, ZIP_GPBF_DATA_DESCRIPTOR, ZIP_MIN, zip_source_begin_write(), ZIP_SOURCE_BEGIN_WRITE_CLONING, zip_source_begin_write_cloning(), zip_source_commit_write(), zip_source_error(), zip_source_free(), ZIP_SOURCE_MAKE_COMMAND_BITMASK, zip_source_remove(), zip_source_rollback_write(), zip_source_seek(), zip_source_supports(), zip_source_tell_write(), ZIP_TRUNCATE, and ZIP_UINT64_MAX.
Referenced by add_from_zip(), compare_zip(), LLVMFuzzerTestOneInput(), main(), merge_zip(), rz_io_zip_alloc_zipfileobj(), rz_io_zip_flush_file(), rz_io_zip_get_by_file_idx(), rz_io_zip_get_files(), rz_io_zip_slurp_file(), and zin_close().