Skip to content
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

Improve size checks #114

Merged
merged 2 commits into from
Nov 12, 2024
Merged

Improve size checks #114

merged 2 commits into from
Nov 12, 2024

Conversation

hchataing
Copy link
Collaborator

  • Remove support for partial parent derivation
  • Implement analyzer checks for field size and offsets

The following pattern is currently only supported
by the Python generator, and will no longer be officially
supported going forward

```
struct Parent {
  a : 1, // no an octet size
  _payload_,
}

struct Child : Parent (a = 0) {
  b : 7,
  // other fields
}
```
Validate that non-bitfield fields do start on an octet boundary,
and that packet and structs have a size that is an integral number
of octets.

Fixes #33
Copy link
Collaborator

@mgeisler mgeisler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to let you merge this, I just had a few questions.

@mgeisler mgeisler changed the title size checks Improve size checks Nov 8, 2024
@hchataing hchataing merged commit d664730 into main Nov 12, 2024
8 checks passed
@hchataing hchataing deleted the size-checks branch November 12, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants