Skip to content

Normalize white-space and odd digit counts in hexadecimal strings#452

Open
splitbrain wants to merge 1 commit into
PrinsFrank:mainfrom
cosmocode:hextobin
Open

Normalize white-space and odd digit counts in hexadecimal strings#452
splitbrain wants to merge 1 commit into
PrinsFrank:mainfrom
cosmocode:hextobin

Conversation

@splitbrain

Copy link
Copy Markdown
Contributor

Per 7.3.4.3, white-space within a hexadecimal string is ignored and a missing final digit is assumed to be 0. Such spec-valid strings were passed straight to hex2bin(), which emitted a warning and returned false, so the string was rejected and its text lost.

Per 7.3.4.3, white-space within a hexadecimal string is ignored and a
missing final digit is assumed to be 0. Such spec-valid strings were
passed straight to hex2bin(), which emitted a warning and returned
false, so the string was rejected and its text lost.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant