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
The implementation hexToBytes accepts non-hex characters and does math on their values as if they are hex chars. For example,ABCD__ and ABCDEF turn into the same bytes. (Character.digit uses a return value of -1 as an error code.)
(EDIT: I had previously thought it didn't fail for an odd number of characters, but it actually does. However, an explicit check would be safer.)
The text was updated successfully, but these errors were encountered:
The implementation hexToBytes accepts non-hex characters and does math on their values as if they are hex chars. For example,
ABCD__
andABCDEF
turn into the same bytes. (Character.digit
uses a return value of -1 as an error code.)(EDIT: I had previously thought it didn't fail for an odd number of characters, but it actually does. However, an explicit check would be safer.)
The text was updated successfully, but these errors were encountered: