From aa41e552ed1337a29373bc9bb6f250e9ec23f6e5 Mon Sep 17 00:00:00 2001 From: Christopher Cole Date: Tue, 1 Nov 2022 16:54:08 -0700 Subject: [PATCH] Bump crate version to v0.6.0 New Features: * Add fuzz targets for parts of our ELF parsing interface via cargo-fuzz * Add SysVHashTable which interprets the contents of a SHT_HASH section * Add StringTable::get_raw() to get an uninterpreted &[u8] * Add ParsingTable.len() method to get the number of elements in the table * Add some note n_type constants for GNU extension notes. * Add default "to_str" feature to get &str for gabi constant names Changed Interfaces: * Change File::segments() to return a ParsingTable instead of just a ParsingIterator * Change File's SectionHeader interfaces to provide a ParsingTable instead of just a ParsingIterator * Remove deprecated File::section_data_for_header() in favor of File::section_data() * Remove FileHeader wrapper types OSABI, Architecture, and ObjectFileType * Remove ProgramHeader wrapper types ProgType and ProgFlag * Remove Symbol wrapper types SymbolType SymbolBind SymbolVis * Remove wrapper type SectionType * Remove unhelpful SectionFlag wrapper type * Remove Display impl for FileHeader, SectionHeader, ProgramHeader, Symbol * Remove ParseError::UnsupportedElfVersion in favor of more general ParseError::UnsupportedVersion Bug Fixes: * Fix divide by zero panic when parsing a note with alignment of 0 (Error instead of panic) * Use checked integer math all over the parsing code (Error instead of panic or overflow) * Fix note parsing for 8-byte aligned .note.gnu.property sections (Successfully parse instead of Erroring) * Add size validation when parsing tables with entsizes (Error instead of panic) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ed00105..369f0ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "elf" -version = "0.5.0" +version = "0.6.0" authors = ["Christopher Cole "] license = "MIT/Apache-2.0" repository = "https://github.com/cole14/rust-elf/"