Skip to content

Instantly share code, notes, and snippets.

@romainthomas
Created February 13, 2022 08:12
Show Gist options
  • Save romainthomas/37da45b043c5f8b8db6be2767611f625 to your computer and use it in GitHub Desktop.
Save romainthomas/37da45b043c5f8b8db6be2767611f625 to your computer and use it in GitHub Desktop.
LIEF functions that potentially return a nullptr instead of raising an exception
LIEF::Abstract::get_symbol()
LIEF::DEX::Method::cls()
LIEF::DEX::Method::prototype()
LIEF::DEX::Prototype::return_type()
LIEF::ELF::Binary::ad_object_relocation
LIEF::ELF::Binary::dynamic_section
LIEF::ELF::Binary::get(DYNAMIC_TAGS tag)
LIEF::ELF::Binary::get(ELF_SECTION_TYPES type)
LIEF::ELF::Binary::get(NOTE_TYPES type)
LIEF::ELF::Binary::get(SEGMENT_TYPES type)
LIEF::ELF::Binary::get_dynamic_symbol
LIEF::ELF::Binary::get_library
LIEF::ELF::Binary::get_relocation
LIEF::ELF::Binary::get_section
LIEF::ELF::Binary::get_static_symbol
LIEF::ELF::Binary::gnu_hash
LIEF::ELF::Binary::hash_section
LIEF::ELF::Binary::section_from_offset
LIEF::ELF::Binary::section_from_virtual_address
LIEF::ELF::Binary::segment_from_offset
LIEF::ELF::Binary::segment_from_virtual_address
LIEF::ELF::Binary::static_symbols_section
LIEF::ELF::Binary::sysv_hash
LIEF::ELF::Binary::text_section
LIEF::ELF::Relocation::section
LIEF::ELF::Relocation::symbol
LIEF::ELF::Symbol::section
LIEF::ELF::Symbol::symbol_version
LIEF::ELF::SymbolVersion::symbol_version_auxiliary
LIEF::MachO::Binary::build_version
LIEF::MachO::Binary::code_signature
LIEF::MachO::Binary::code_signature_dir
LIEF::MachO::Binary::data_in_code
LIEF::MachO::Binary::dyld_environment
LIEF::MachO::Binary::dyld_info
LIEF::MachO::Binary::dylinker
LIEF::MachO::Binary::dynamic_symbol_command
LIEF::MachO::Binary::encryption_info
LIEF::MachO::Binary::function_starts
LIEF::MachO::Binary::get(LOAD_COMMAND_TYPES type)
LIEF::MachO::Binary::get_section
LIEF::MachO::Binary::main_command
LIEF::MachO::Binary::rpath
LIEF::MachO::Binary::section_from_offset
LIEF::MachO::Binary::section_from_virtual_address
LIEF::MachO::Binary::segment_from_offset
LIEF::MachO::Binary::segment_from_virtual_address
LIEF::MachO::Binary::segment_split_info
LIEF::MachO::Binary::source_version
LIEF::MachO::Binary::sub_framework
LIEF::MachO::Binary::symbol_command
LIEF::MachO::Binary::thread_command
LIEF::MachO::Binary::uuid
LIEF::MachO::Binary::version_min
LIEF::MachO::BindingInfo::library
LIEF::MachO::BindingInfo::segment
LIEF::MachO::BindingInfo::symbol
LIEF::MachO::ExportInfo::symbol
LIEF::MachO::Relocation::section
LIEF::MachO::Relocation::segment
LIEF::MachO::Relocation::symbol
LIEF::MachO::Section::segment
LIEF::MachO::Symbol::binding_info
LIEF::MachO::Symbol::export_info
LIEF::OAT::Binary::get_class
LIEF::OAT::Class::dex_class
LIEF::OAT::DexFile::dex_file
LIEF::OAT::Method::dex_method
LIEF::OAT::Method::oat_class
LIEF::PE::Binary::add_import_function
LIEF::PE::Binary::get_import
LIEF::PE::Binary::get_section
LIEF::PE::Binary::import_section
LIEF::PE::Binary::load_configuration
LIEF::PE::Binary::resources
LIEF::PE::Binary::section_from_offset
LIEF::PE::Binary::section_from_rva
LIEF::PE::Debug::code_view
LIEF::PE::Debug::pogo
LIEF::PE::Import::directory
LIEF::PE::Import::iat_directory
LIEF::PE::LoadConfigurationV2::code_integrity
LIEF::PE::TLS::directory
LIEF::PE::TLS::section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment