From 911c6a5bc221b7607b7095bb9c4dbe5ce2f8ff88 Mon Sep 17 00:00:00 2001 From: Adolph C Date: Sat, 9 May 2020 21:29:17 -0400 Subject: [PATCH] Replaced CoffHeader::strings unwrap with try. --- src/pe/header.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pe/header.rs b/src/pe/header.rs index c1e90d535..4eff5053e 100644 --- a/src/pe/header.rs +++ b/src/pe/header.rs @@ -99,7 +99,7 @@ impl CoffHeader { let offset = self.pointer_to_symbol_table as usize + symbol::SymbolTable::size(self.number_of_symbol_table as usize); let length = bytes.pread_with::(offset, scroll::LE)? as usize; - Ok(strtab::Strtab::parse(bytes, offset, length, 0).unwrap()) + Ok(strtab::Strtab::parse(bytes, offset, length, 0)?) } }