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

Underflow not detected for range length field #336

Closed
senier opened this issue Jul 10, 2020 · 0 comments · Fixed by #337
Closed

Underflow not detected for range length field #336

senier opened this issue Jul 10, 2020 · 0 comments · Fixed by #337
Assignees
Labels
bug model Related to model package (e.g., model verification)

Comments

@senier
Copy link
Member

senier commented Jul 10, 2020

The following spec is excepted even though Len can become negative:

package Example is                                                                                                                                                            

   type Len is range 40 .. 1500 with Size => 16;

   type TLV is
      message
         Len : Len
            then Data with Length => 8 * (Len - 50);
         Data : Opaque;
      end message;
end Example;
@senier senier created this issue from a note in RecordFlux 0.4.1 (To do) Jul 10, 2020
senier pushed a commit that referenced this issue Jul 10, 2020
@senier senier moved this from To do to In progress in RecordFlux 0.4.1 Jul 10, 2020
@senier senier self-assigned this Jul 10, 2020
senier pushed a commit that referenced this issue Jul 12, 2020
- Add more known third party packages to .isort.cfg
- Move field length test to test_verification
- Improve field length test to not only contain invalid values

Ref. #336, #337
senier pushed a commit that referenced this issue Jul 13, 2020
senier pushed a commit that referenced this issue Jul 13, 2020
RecordFlux 0.4.1 automation moved this from In progress to Done Jul 13, 2020
senier pushed a commit that referenced this issue Jul 13, 2020
senier pushed a commit that referenced this issue Jul 13, 2020
- Add more known third party packages to .isort.cfg
- Move field length test to test_verification
- Improve field length test to not only contain invalid values

Ref. #336, #337
senier pushed a commit that referenced this issue Jul 13, 2020
@treiher treiher added bug model Related to model package (e.g., model verification) labels Jul 14, 2020
@treiher treiher mentioned this issue Jul 14, 2020
4 tasks
treiher pushed a commit that referenced this issue Jul 23, 2020
treiher pushed a commit that referenced this issue Jul 23, 2020
- Add more known third party packages to .isort.cfg
- Move field length test to test_verification
- Improve field length test to not only contain invalid values

Ref. #336, #337
treiher pushed a commit that referenced this issue Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug model Related to model package (e.g., model verification)
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants