From: Suraj N. Kurapati Date: Fri, 18 Aug 2017 06:00:10 +0000 (-0700) Subject: base64dec: skip non-printable characters like \r\n X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=ee5cc8e903574bf629e5159334ae6b0fad6af402;hp=ee5cc8e903574bf629e5159334ae6b0fad6af402;p=st.git 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. ---