Skip to content

Commit 78c42ed

Browse files
authored
v0.1.1 (#2)
1 parent 21f61f4 commit 78c42ed

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/kdmp-parser-rs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ jobs:
101101
TESTDATAS: "."
102102
run: cargo test
103103

104+
- name: cargo test release
105+
env:
106+
TESTDATAS: "."
107+
run: cargo test --release
108+
104109
- name: cargo check
105110
run: cargo check
106111

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[package]
22
name = "kdmp-parser"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
authors = ["Axel '0vercl0k' Souchet"]
66
categories = ["parser-implementations"]
7-
description = "A Rust crate for parsing Windows kernel crashdumps"
7+
description = "A KISS Rust crate to parse Windows kernel crash-dumps created by Windows & its debugger."
88
include = [
99
"/Cargo.toml",
1010
"/LICENSE",
1111
"/src/**",
12-
"/examples/**",
1312
"README.md",
1413
]
1514
keywords = ["windows", "kernel", "crashdump"]

src/parse.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ impl<'reader> KernelDumpParser<'reader> {
398398
KdmpParserError::Overflow("overflow when computing pfn in bitmap")
399399
})?;
400400

401-
debug_assert!(physmem.insert(pa, page_offset).is_none());
401+
let insert = physmem.insert(pa, page_offset);
402+
debug_assert!(insert.is_none());
402403
page_offset = page_offset.checked_add(Page::size()).ok_or_else(|| {
403404
KdmpParserError::BitmapPageOffsetOverflow(bitmap_idx, bit_idx)
404405
})?;
@@ -484,7 +485,8 @@ impl<'reader> KernelDumpParser<'reader> {
484485
for page_idx in 0..pfn_range.number_of_pages {
485486
let gpa = gpa_from_pfn_range(&pfn_range, page_idx)
486487
.ok_or_else(|| KdmpParserError::Overflow("overflow w/ pfn_range"))?;
487-
debug_assert!(physmem.insert(gpa, page_offset).is_none());
488+
let insert = physmem.insert(gpa, page_offset);
489+
debug_assert!(insert.is_none());
488490
page_offset = page_offset
489491
.checked_add(Page::size())
490492
.ok_or_else(|| KdmpParserError::Overflow("overflow w/ page_offset"))?;

0 commit comments

Comments
 (0)