From 36f4b4a4aa713e736e7be10049bc2da355fd7246 Mon Sep 17 00:00:00 2001 From: Jacob Latonis Date: Sun, 14 Jan 2024 09:42:56 -0600 Subject: [PATCH] docstring for function --- yara-x/src/modules/macho/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/yara-x/src/modules/macho/mod.rs b/yara-x/src/modules/macho/mod.rs index e77352d30..2d863b5ef 100644 --- a/yara-x/src/modules/macho/mod.rs +++ b/yara-x/src/modules/macho/mod.rs @@ -2825,6 +2825,18 @@ fn handle_command( Ok(seg_count) } +/// Processes the symbol table and string table based on the values calculated +/// from the LC_SYMTAB load command. +/// +/// # Arguments +/// +/// * `data`: The raw byte data of the Mach-O file. +/// * `macho_file`: The protobuf representation of the Mach-O file to be populated. +/// +/// # Returns +/// +/// Returns a `Result<(), MachoError>` indicating the success or failure of the +/// parsing operation. fn parse_macho_symtab_tables( data: &[u8], macho_file: &mut File,