Home GnuPG

sexp: Allow white space anywhere in a hex format.
43320961a875Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

sexp: Allow white space anywhere in a hex format.

* src/sexp.c (hextobyte): Remove.
(hextonibble): New.
(vsexp_sscan): Skip whtespace between hex nibbles.

Before that patch a string

"(a #123"
"    456#")

was not correctly parsed because white space was only allowed between
two hex digits but not in between nibbles.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 29 2013, 3:16 PM
Parents
rC6e0a9786637d: Implement deterministic ECDSA as specified by rfc-6979.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC43320961a875: sexp: Allow white space anywhere in a hex format. (authored by Werner Koch <wk@gnupg.org>).Jul 29 2013, 3:16 PM