From 3b3f526d87f634766523dc294d340f10a26355d7 Mon Sep 17 00:00:00 2001 From: psrok1 Date: Thu, 1 Aug 2024 14:16:13 +0200 Subject: [PATCH] Fix: missing struct member offset info --- drakpdb/type_info.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drakpdb/type_info.py b/drakpdb/type_info.py index 8d0e9e1..bfd2fbe 100644 --- a/drakpdb/type_info.py +++ b/drakpdb/type_info.py @@ -116,7 +116,7 @@ def process_structure(struct): return [ struct.size, { - member.name: process_structure_member(member) + member.name: [member.offset, process_structure_member(member)] for member in struct.fieldlist.substructs if member.leaf_type == "LF_MEMBER" }, diff --git a/pyproject.toml b/pyproject.toml index 880fb9f..edd704d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "drakpdb" -version = "0.2.0" +version = "0.2.1" description = "Helper library to generate DRAKVUF profiles." readme = "README.md" classifiers = [