Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static bool | is_cab_using_unix_paths (struct mscabd_file *files) |
static bool | is_slash (const char *str) |
static bool | is_previous_dir (const char *path) |
static char * | sanitize_cab_filename (struct mscabd_file *file, const char *output_dir, bool is_unix) |
static const char * | cab_error (struct mscab_decompressor *cd) |
RZ_API bool | rz_bin_pdb_extract_in_folder (RZ_NONNULL const char *file_cab, RZ_NONNULL const char *output_dir) |
Extracts compressed PDB files into a folder. More... | |
|
static |
Definition at line 175 of file cab_extract.c.
References cd, MSPACK_ERR_CHECKSUM, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_DECRUNCH, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OPEN, MSPACK_ERR_READ, MSPACK_ERR_SEEK, MSPACK_ERR_SIGNATURE, MSPACK_ERR_WRITE, and rz_warn_if_reached.
Referenced by rz_bin_pdb_extract_in_folder().
|
static |
Definition at line 11 of file cab_extract.c.
References c, mscabd_file::filename, files, len, name, mscabd_file::next, file::next, NULL, and p.
Referenced by rz_bin_pdb_extract_in_folder().
Definition at line 81 of file cab_extract.c.
References is_slash(), and path.
Referenced by sanitize_cab_filename().
Definition at line 77 of file cab_extract.c.
References cmd_descs_generate::str.
Referenced by is_previous_dir(), and sanitize_cab_filename().
RZ_API bool rz_bin_pdb_extract_in_folder | ( | RZ_NONNULL const char * | file_cab, |
RZ_NONNULL const char * | output_dir | ||
) |
Extracts compressed PDB files into a folder.
file_cab | The file cab |
output_dir | The output dir |
Definition at line 209 of file cab_extract.c.
References cab_error(), cabd, mscab_decompressor::close, mscab_decompressor::extract, mscabd_cabinet::files, free(), is_cab_using_unix_paths(), mspack_create_cab_decompressor(), mspack_destroy_cab_decompressor(), file::next, NULL, mscab_decompressor::open, rz_file_exists(), rz_file_is_directory(), RZ_LOG_ERROR, RZ_LOG_INFO, rz_return_val_if_fail, and sanitize_cab_filename().
Referenced by download(), and rz_cmd_pdb_extract_handler().
|
static |
Definition at line 85 of file cab_extract.c.
References c, input(), is_previous_dir(), is_slash(), len, memcpy(), MSCAB_ATTRIB_UTF_NAME, NULL, output, RZ_LOG_ERROR, RZ_NEWS0, rz_utf8_decode(), and rz_utf8_encode().
Referenced by rz_bin_pdb_extract_in_folder().