diff --git a/.github/workflows/kdmp-parser-rs.yml b/.github/workflows/kdmp-parser-rs.yml index 3473824..20e0749 100644 --- a/.github/workflows/kdmp-parser-rs.yml +++ b/.github/workflows/kdmp-parser-rs.yml @@ -101,6 +101,11 @@ jobs: TESTDATAS: "." run: cargo test + - name: cargo test release + env: + TESTDATAS: "." + run: cargo test --release + - name: cargo check run: cargo check diff --git a/Cargo.toml b/Cargo.toml index 3a0e04c..08f69e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,14 @@ [package] name = "kdmp-parser" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Axel '0vercl0k' Souchet"] categories = ["parser-implementations"] -description = "A Rust crate for parsing Windows kernel crashdumps" +description = "A KISS Rust crate to parse Windows kernel crash-dumps created by Windows & its debugger." include = [ "/Cargo.toml", "/LICENSE", "/src/**", - "/examples/**", "README.md", ] keywords = ["windows", "kernel", "crashdump"] diff --git a/src/parse.rs b/src/parse.rs index e931739..b410b3a 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -398,7 +398,8 @@ impl<'reader> KernelDumpParser<'reader> { KdmpParserError::Overflow("overflow when computing pfn in bitmap") })?; - debug_assert!(physmem.insert(pa, page_offset).is_none()); + let insert = physmem.insert(pa, page_offset); + debug_assert!(insert.is_none()); page_offset = page_offset.checked_add(Page::size()).ok_or_else(|| { KdmpParserError::BitmapPageOffsetOverflow(bitmap_idx, bit_idx) })?; @@ -484,7 +485,8 @@ impl<'reader> KernelDumpParser<'reader> { for page_idx in 0..pfn_range.number_of_pages { let gpa = gpa_from_pfn_range(&pfn_range, page_idx) .ok_or_else(|| KdmpParserError::Overflow("overflow w/ pfn_range"))?; - debug_assert!(physmem.insert(gpa, page_offset).is_none()); + let insert = physmem.insert(gpa, page_offset); + debug_assert!(insert.is_none()); page_offset = page_offset .checked_add(Page::size()) .ok_or_else(|| KdmpParserError::Overflow("overflow w/ page_offset"))?;