Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | noned_state |
|
static |
Definition at line 807 of file cabd.c.
References cabd_merge(), and mscabd_cabinet::nextcab.
Referenced by mspack_create_cab_decompressor().
|
static |
Definition at line 953 of file cabd.c.
References mscabd_folder_p::base, CAB_FOLDERMAX, mscabd_folder::comp_type, D, mscabd_file::filename, mscabd_file::length, mscabd_folder_p::merge_next, mscabd_folder_p::merge_prev, mspack_system::message, mscabd_file::next, NULL, mscabd_folder::num_blocks, mscabd_file::offset, and r.
Referenced by cabd_merge().
|
static |
|
static |
Definition at line 230 of file cabd.c.
References mscab_decompressor_p::base, cabd_free_decomp(), mspack_system::close, mscabd_file::filename, mscabd_cabinet::files, mscabd_cabinet::folders, mspack_system::free, MSPACK_ERR_OK, mscabd_folder_data::next, mscabd_cabinet::next, mscabd_folder::next, mscabd_file::next, mscabd_cabinet::nextcab, mscabd_cabinet::nextinfo, mscabd_cabinet::nextname, NULL, mscabd_cabinet::prevcab, mscabd_cabinet::previnfo, and mscabd_cabinet::prevname.
Referenced by cabd_find(), cabd_open(), and mspack_create_cab_decompressor().
|
static |
Definition at line 1511 of file cabd.c.
References mscab_decompressor_p::base, and MSPACK_ERR_ARGS.
Referenced by mspack_create_cab_decompressor().
|
static |
Definition at line 1010 of file cabd.c.
References mspack_system::alloc, mscab_decompressor_p::base, mscabd_cabinet_p::base, mscabd_folder_p::base, bytes, mscabd_folder_data::cab, CAB_BLOCKMAX, CAB_LENGTHMAX, cabd_free_decomp(), cabd_init_decomp(), cabd_sys_read(), cabd_sys_write(), mspack_system::close, mscabd_folder::comp_type, mscabd_folder_p::data, error(), fh, filelen, mscabd_cabinet::filename, if(), maxlen, mscabd_folder_p::merge_prev, mspack_system::message, MSPACK_ERR_ARGS, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_DECRUNCH, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, MSPACK_ERR_OPEN, MSPACK_ERR_READ, MSPACK_ERR_SEEK, MSPACK_SYS_OPEN_READ, MSPACK_SYS_OPEN_WRITE, MSPACK_SYS_SEEK_START, NULL, mscabd_folder::num_blocks, mscabd_folder_data::offset, mspack_system::open, mspack_system::read, mspack_system::seek, and mscabd_decompress_state::sys.
Referenced by mspack_create_cab_decompressor().
|
static |
Definition at line 645 of file cabd.c.
References mspack_system::alloc, mscabd_cabinet_p::base, cabd_close(), cabd_read_headers(), D, EndGetI32, fh, mscabd_cabinet::filename, length, link, mspack_system::message, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, MSPACK_ERR_READ, MSPACK_ERR_SEEK, MSPACK_SYS_SEEK_START, NULL, p, mspack_system::read, and mspack_system::seek.
Referenced by cabd_search().
|
static |
Definition at line 1193 of file cabd.c.
References cffoldCOMPTYPE_LZX, cffoldCOMPTYPE_MASK, cffoldCOMPTYPE_MSZIP, cffoldCOMPTYPE_NONE, cffoldCOMPTYPE_QUANTUM, lzxd_free(), mszipd_free(), noned_free(), NULL, and qtmd_free().
Referenced by cabd_close(), cabd_extract(), and mspack_destroy_cab_decompressor().
|
static |
Definition at line 1161 of file cabd.c.
References cffoldCOMPTYPE_LZX, cffoldCOMPTYPE_MASK, cffoldCOMPTYPE_MSZIP, cffoldCOMPTYPE_NONE, cffoldCOMPTYPE_QUANTUM, fh, int, lzxd_decompress(), lzxd_init(), MSPACK_ERR_DATAFORMAT, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, mszipd_decompress(), mszipd_init(), noned_decompress(), noned_init(), qtmd_decompress(), and qtmd_init().
Referenced by cabd_extract().
|
static |
Definition at line 814 of file cabd.c.
References mspack_system::alloc, mscab_decompressor_p::base, mscabd_folder_p::base, cabd_can_merge_folders(), D, mscabd_folder_p::data, mscabd_file::filename, mscabd_cabinet::files, mscabd_file::folder, mscabd_cabinet::folders, mspack_system::free, if(), mscabd_folder_p::merge_next, mscabd_folder_p::merge_prev, mspack_system::message, MSPACK_ERR_ARGS, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, mscabd_folder_data::next, mscabd_folder::next, mscabd_file::next, mscabd_cabinet::nextcab, NULL, mscabd_folder::num_blocks, mscabd_cabinet::prevcab, mscabd_cabinet::set_id, and mscabd_cabinet::set_index.
Referenced by cabd_append(), and cabd_prepend().
|
static |
Definition at line 192 of file cabd.c.
References mspack_system::alloc, mscab_decompressor_p::base, mscabd_cabinet_p::base, cabd_close(), cabd_read_headers(), mspack_system::close, error(), fh, mscabd_cabinet::filename, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OPEN, MSPACK_SYS_OPEN_READ, NULL, and mspack_system::open.
Referenced by mspack_create_cab_decompressor().
|
static |
Definition at line 1481 of file cabd.c.
References mscab_decompressor_p::base, MSCABD_PARAM_DECOMPBUF, MSCABD_PARAM_FIXMSZIP, MSCABD_PARAM_SALVAGE, MSCABD_PARAM_SEARCHBUF, MSPACK_ERR_ARGS, MSPACK_ERR_OK, and value.
Referenced by mspack_create_cab_decompressor().
|
static |
Definition at line 800 of file cabd.c.
References cabd_merge(), and mscabd_cabinet::prevcab.
Referenced by mspack_create_cab_decompressor().
|
static |
Definition at line 309 of file cabd.c.
References mspack_system::alloc, mscabd_cabinet_p::base, mscabd_folder_p::base, mscabd_cabinet::base_offset, mscabd_cabinet_p::block_resv, mscabd_folder_data::cab, cabd_read_string(), cffile_Attribs, cffile_Date, cffile_FolderIndex, cffile_FolderOffset, cffile_SIZEOF, cffile_Time, cffile_UncompressedSize, cffileCONTINUED_FROM_PREV, cffileCONTINUED_PREV_AND_NEXT, cffileCONTINUED_TO_NEXT, cffold_CompType, cffold_DataOffset, cffold_NumBlocks, cffold_SIZEOF, cfhead_CabinetIndex, cfhead_CabinetSize, cfhead_Flags, cfhead_MajorVersion, cfhead_MinorVersion, cfhead_NumFiles, cfhead_NumFolders, cfhead_SetID, cfhead_Signature, cfhead_SIZEOF, cfheadext_DataReserved, cfheadext_FolderReserved, cfheadext_HeaderReserved, cfheadext_SIZEOF, cfheadNEXT_CABINET, cfheadPREV_CABINET, cfheadRESERVE_PRESENT, mscabd_folder::comp_type, D, mscabd_folder_p::data, EndGetI16, EndGetI32, err, fh, file, mscabd_cabinet::files, mscabd_cabinet::flags, mscabd_cabinet::folders, mspack_system::free, mscabd_cabinet::header_resv, i, if(), mscabd_cabinet::length, mscabd_folder_p::merge_next, mscabd_folder_p::merge_prev, mspack_system::message, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, MSPACK_ERR_READ, MSPACK_ERR_SEEK, MSPACK_ERR_SIGNATURE, MSPACK_SYS_SEEK_CUR, MSPACK_SYS_SEEK_START, mscabd_folder_data::next, mscabd_cabinet::next, mscabd_folder::next, mscabd_file::next, file::next, mscabd_cabinet::nextcab, mscabd_cabinet::nextinfo, mscabd_cabinet::nextname, NULL, mscabd_folder::num_blocks, mscabd_folder_data::offset, mscabd_cabinet::prevcab, mscabd_cabinet::previnfo, mscabd_cabinet::prevname, mspack_system::read, mspack_system::seek, mscabd_cabinet::set_id, mscabd_cabinet::set_index, and x.
Referenced by cabd_find(), and cabd_open().
|
static |
Definition at line 538 of file cabd.c.
References mspack_system::alloc, mscabd_folder_p::base, mspack_system::copy, error(), fh, i, len, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, MSPACK_ERR_READ, MSPACK_ERR_SEEK, MSPACK_SYS_SEEK_START, NULL, ok, mspack_system::read, mspack_system::seek, cmd_descs_generate::str, and mspack_system::tell.
Referenced by cabd_read_headers().
|
static |
Definition at line 591 of file cabd.c.
References mspack_system::alloc, mscab_decompressor_p::base, mscabd_cabinet_p::base, mscabd_cabinet::base_offset, cabd_find(), mspack_system::close, fh, filelen, mspack_system::free, LD, mspack_system::message, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OPEN, mspack_sys_filelen(), MSPACK_SYS_OPEN_READ, NULL, mspack_system::open, and search_buf.
Referenced by mspack_create_cab_decompressor().
|
static |
Definition at line 1218 of file cabd.c.
References bytes, cabd_sys_read_block(), cffoldCOMPTYPE_LZX, cffoldCOMPTYPE_MASK, cffoldCOMPTYPE_MSZIP, cffoldCOMPTYPE_QUANTUM, mspack_system::copy, D, lzxd_set_output_length(), and MSPACK_ERR_DATAFORMAT.
Referenced by cabd_extract().
|
static |
Definition at line 1297 of file cabd.c.
References CAB_BLOCKMAX, CAB_INPUTMAX, CAB_INPUTMAX_SALVAGE, cabd_checksum(), cfdata_CheckSum, cfdata_CompressedSize, cfdata_SIZEOF, cfdata_UncompressedSize, mspack_system::close, D, d, EndGetI16, EndGetI32, len, mspack_system::message, MSPACK_ERR_CHECKSUM, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_OK, MSPACK_ERR_OPEN, MSPACK_ERR_READ, MSPACK_ERR_SEEK, MSPACK_SYS_OPEN_READ, MSPACK_SYS_SEEK_CUR, MSPACK_SYS_SEEK_START, NULL, mspack_system::open, out, mspack_system::read, and mspack_system::seek.
Referenced by cabd_sys_read().
|
static |
struct mscab_decompressor* mspack_create_cab_decompressor | ( | struct mspack_system * | sys | ) |
Creates a new CAB decompressor.
sys | a custom mspack_system structure, or NULL to use the default |
Definition at line 140 of file cabd.c.
References mspack_system::alloc, cabd_append(), cabd_close(), cabd_error(), cabd_extract(), cabd_open(), cabd_param(), cabd_prepend(), cabd_search(), mspack_default_system, MSPACK_ERR_OK, mspack_valid_system(), and NULL.
Referenced by main(), and rz_bin_pdb_extract_in_folder().
void mspack_destroy_cab_decompressor | ( | struct mscab_decompressor * | self | ) |
Destroys an existing CAB decompressor.
self | the mscab_decompressor to destroy |
Definition at line 173 of file cabd.c.
References mscab_decompressor_p::base, cabd_free_decomp(), mspack_system::close, and mspack_system::free.
Referenced by main(), and rz_bin_pdb_extract_in_folder().
|
static |
Definition at line 1455 of file cabd.c.
References bytes, MSPACK_ERR_OK, MSPACK_ERR_READ, MSPACK_ERR_WRITE, run(), and s.
Referenced by cabd_init_decomp().
|
static |
Definition at line 1466 of file cabd.c.
References mspack_system::free.
Referenced by cabd_free_decomp().
|
static |
Definition at line 1433 of file cabd.c.
References mspack_system::alloc, noned_state::bufsize, mspack_system::free, in, NULL, out, and noned_state::sys.
Referenced by cabd_init_decomp().