Skip to main content

Module strings

Module strings 

Source
Expand description

Cross-format NUL-terminated string helpers.

PE import/export names, PE long section names (/offset into the COFF string table), and Mach-O symtab / dylib cstring pools share the same on-disk encoding. This module centralizes reading and exposes thin per-format wrappers.

Structs§

CStringPool
View of a Mach-O LC_SYMTAB string pool.

Functions§

macho_dylib_paths
Resolves every dylib path referenced by load commands (weak / re-export / lazy included).
macho_symtab_string_pool
Returns the Mach-O symtab cstring pool when LC_SYMTAB is present.
pe_export_names
Returns exported symbol names when an export directory is present.
pe_import_strings
Collects DLL names and imported symbol names from the PE import directory.
pe_import_strings_from_directory
Same as pe_import_strings but reuses a parsed ImportDirectory.
pe_section_name
Resolves a PE section name, including COFF long names (/123 → string table offset).
read_c_string
Reads a NUL-terminated string at an absolute file offset.
read_c_string_in_pool
Reads a string inside a cstring pool (stroff .. stroff + strsize).