Skip to content

Fix ordering check when encoding SET#607

Merged
alex merged 1 commit intoalex:mainfrom
trail-of-forks:ft/set-ordering-optional
Mar 20, 2026
Merged

Fix ordering check when encoding SET#607
alex merged 1 commit intoalex:mainfrom
trail-of-forks:ft/set-ordering-optional

Conversation

@facutuesca
Copy link
Contributor

When encoding SET fields, we keep track of the last written field to see if the current field is correctly ordered relative to it.

However, in some cases a field is not encoded (for example, for absent optional values). In those cases, we shouldn't check the ordering.

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
@alex alex merged commit 41b8d2b into alex:main Mar 20, 2026
13 checks passed
@facutuesca facutuesca deleted the ft/set-ordering-optional branch March 20, 2026 21:19
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