summaryrefslogtreecommitdiff
path: root/arg.h
diff options
context:
space:
mode:
authorSuraj N. Kurapati <sunaku@riseup.net>2017-08-17 23:00:10 -0700
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-09-15 11:13:17 +0200
commitee5cc8e903574bf629e5159334ae6b0fad6af402 (patch)
treede4764f1636464d7a0db6635003c149dcf26203a /arg.h
parent274d46ace00003d1df718b974d17642cbce167d5 (diff)
base64dec: skip non-printable characters like \r\n
Non-printable characters, such as line breaks, in a base64 encoded string violate the "string length must be a multiple of four" rule. This patch pads the result buffer by one extra unit of four bytes, and skips over non-printable characters found in the input string.
Diffstat (limited to 'arg.h')
0 files changed, 0 insertions, 0 deletions