-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows crashdump fix and refactor #1449
base: develop
Are you sure you want to change the base?
Windows crashdump fix and refactor #1449
Conversation
…, removing hardcoded values, and cleaning up the code for better readability and maintainability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, think we can reuse those constants in the crashinfo
plugin too... I'll await @atcuno 's review just in case.
@@ -28,6 +28,9 @@ class WindowsCrashDump32Layer(segmented.SegmentedLayer): | |||
SIGNATURE = 0x45474150 | |||
VALIDDUMP = 0x504D5544 | |||
|
|||
DUMP_TYPE_FULL = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crash info should probably make use of these constants (at the moment it hardcodes the values).
fix: #1438 |
Waiting on your review please @atcuno (once the parity release is out). |
This PR addresses #1438.
Unfortunately, previously the code was messy and difficult to follow. I refactored the
_load_segments()
function by splitting it based on each dump type, adding docstrings and typing, removing hardcoded values, and cleaning up the code for improved readability and maintainability.@atcuno Could you please test it thoroughly? It should be fine since I've only rearranged the code.