File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11[package ]
22name = " kdmp-parser"
3- version = " 0.1.0 "
3+ version = " 0.1.1 "
44edition = " 2021"
55authors = [" Axel '0vercl0k' Souchet" ]
66categories = [" 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. "
88include = [
99 " /Cargo.toml" ,
1010 " /LICENSE" ,
1111 " /src/**" ,
12- " /examples/**" ,
1312 " README.md" ,
1413]
1514keywords = [" windows" , " kernel" , " crashdump" ]
Original file line number Diff line number Diff 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" ) ) ?;
You can’t perform that action at this time.
0 commit comments