You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will not work as some variants are subsets of other ones so will incorrectly parse as one of the other variants without checking the array/map length here.
Fixes#175
Now properly checks all lengths for all variants to ensure that
overlapping types parse the correct variant instead of prematurely
thinking it's a subset of one.
Also fixes having CBORReadLen contributions from previous variants that
tried to parse from contributing to later variant parses (possibly
causing issues if it meant it already hit the limit).
Includes support for optional fields within enums that get inlined.
Tests for both cases.
* Enum length-check fixes + Enum optional field support
Fixes#175
Now properly checks all lengths for all variants to ensure that
overlapping types parse the correct variant instead of prematurely
thinking it's a subset of one.
Also fixes having CBORReadLen contributions from previous variants that
tried to parse from contributing to later variant parses (possibly
causing issues if it meant it already hit the limit).
Includes support for optional fields within enums that get inlined.
Tests for both cases.
* preserve-encodings tests for overlapping_inlined + enum_opt_embed_fields
Will not work as some variants are subsets of other ones so will incorrectly parse as one of the other variants without checking the array/map length here.
When you do this not inlined like:
there is no problem as this is taken care of in the dedicated structs' deserializes.
The text was updated successfully, but these errors were encountered: