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
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
The lisk-validator method that validates hex-encoded data, isHexString, returns true if the provided string is empty ('') or consists of just one hex character (e.g., 'f'):
Both cases will cause a subsequent call to Buffer.from(data, 'hex') to return an empty Buffer object. This may violate the assumption that because the string passed hex format validation, it must encode usable data. Furthermore, when the number of characters is odd but greater than one (e.g., 'fff'), it results in incomplete decoding.
Which version(s) does this affect? (Environment, OS, etc...)
v6.0.0-beta.1
The text was updated successfully, but these errors were encountered:
Description
The lisk-validator method that validates hex-encoded data, isHexString, returns true if the provided string is empty ('') or consists of just one hex character (e.g., 'f'):
Both cases will cause a subsequent call to Buffer.from(data, 'hex') to return an empty Buffer object. This may violate the assumption that because the string passed hex format validation, it must encode usable data. Furthermore, when the number of characters is odd but greater than one (e.g., 'fff'), it results in incomplete decoding.
Which version(s) does this affect? (Environment, OS, etc...)
v6.0.0-beta.1
The text was updated successfully, but these errors were encountered: