Skip to content

Commit

Permalink
v0.1.1 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
0vercl0k authored Mar 21, 2024
1 parent 21f61f4 commit 78c42ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/kdmp-parser-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
6 changes: 4 additions & 2 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})?;
Expand Down Expand Up @@ -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"))?;
Expand Down

0 comments on commit 78c42ed

Please sign in to comment.