-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Ligthouse's SSZ impl was recently found to have a bug in its decoding of invalid Union types:
TL;DR we would decode 0x00......: Union[T...] as None, ignoring any trailing bytes after the 0x00 selector.
Fortunately this does not cause a consensus failure as Union is currently unused in Ethereum consensus.
However, I still think it would be prudent for the spec to add some tests exercising the Union code paths. Writing new tests in ssz_generic might be the simplest.
jtraglia and trackoor
Metadata
Metadata
Assignees
Labels
No labels