LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 456 forks source link

Add error handling on additional or missing data while decoding #6989

Closed shuse2 closed 11 months ago

shuse2 commented 2 years ago

Description

During the decode, below check should be added assuming decoding is done in order of field number

Only array of length zero should be allowed to be skipped as key

Motivation

We want to maintain behavior of https://github.com/LiskHQ/lisk-sdk/issues/6987 while more enforcing for the nested schemas to follow this protocol.

shuse2 commented 11 months ago

Closing this issue since this is no longer valid