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
Describe the bug
There is no check to the values that are cast to create a new BlockHeader from RLP. The client does not go down but does dump a stack exception.
Expected behavior
No expected behavior, but a desirable one would be a test on the long casts to confirm they are within range and give the user more precise feedback. For example here before the case warn the user that an invalid gasUsed was received.
Screenshots
N/A
Desktop (please complete the following information):
linux
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
There is no check to the values that are cast to create a new BlockHeader from RLP. The client does not go down but does dump a stack exception.
To Reproduce
The issue was in creating a new block header from: https://github.com/NethermindEth/nethermind/blob/master/src/Nethermind/Nethermind.Serialization.Rlp/HeaderDecoder.cs#L57
The block it received and was creating a header for is given here:
Expected behavior
No expected behavior, but a desirable one would be a test on the long casts to confirm they are within range and give the user more precise feedback. For example here before the case warn the user that an invalid gasUsed was received.
Screenshots
N/A
Desktop (please complete the following information):
linux
Additional context
N/A
The text was updated successfully, but these errors were encountered: