Handle unexpected eof after =.
This commit is contained in:
parent
c239ef7327
commit
a38834ebf2
|
@ -77,6 +77,9 @@
|
||||||
(loop (read-byte in))
|
(loop (read-byte in))
|
||||||
;; Not a LF? Well, ok.
|
;; Not a LF? Well, ok.
|
||||||
(loop next-next)))]
|
(loop next-next)))]
|
||||||
|
[(eof-object? next)
|
||||||
|
(warning "Illegal qp sequence: `='")
|
||||||
|
(display "=" out)]
|
||||||
[(hex-digit? next)
|
[(hex-digit? next)
|
||||||
(let ([next-next (read-byte in)])
|
(let ([next-next (read-byte in)])
|
||||||
(cond [(eof-object? next-next)
|
(cond [(eof-object? next-next)
|
||||||
|
|
|
@ -79,7 +79,8 @@
|
||||||
do (check-same-all base64-encode-stream
|
do (check-same-all base64-encode-stream
|
||||||
base64-decode-stream
|
base64-decode-stream
|
||||||
#rx#"^[0-9a-zA-Z+=/]*$"
|
#rx#"^[0-9a-zA-Z+=/]*$"
|
||||||
72)))
|
72))
|
||||||
|
(test (qp-decode #"=20=") #" ="))
|
||||||
|
|
||||||
#|
|
#|
|
||||||
Use this to compare base64 encode/decode against the unix utilities
|
Use this to compare base64 encode/decode against the unix utilities
|
||||||
|
|
Loading…
Reference in New Issue
Block a user