Skip to content

Add support for permissive enums #4

@dmlary

Description

@dmlary

Problem Statement

When reading structures from memory, it's possible that some enum fields have unknown values. As a result, the CType will raise an exception instead of unpacking the rest of the struct. CTypes::Enum#permissive returns a duplicate Enum type that does not raise an exception when unknown values are encountered.

Types returned by ElfUtils currently are all strict types, raising exceptions for data mismatches.

To make it easier to unpack real-world data, we should add a mechanism to use permissive types instead of strict types.

Proposed Solution

todo

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions