From 9deaf399553050b3b426e8a39d0ffd22430bf72d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 14 Apr 2018 21:39:58 +0200 Subject: In-depth fix for to64frombits() BASE64 encoder buffer sizing. --- cram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cram.c') diff --git a/cram.c b/cram.c index cf33393e..4ac4a31f 100644 --- a/cram.c +++ b/cram.c @@ -122,7 +122,7 @@ int do_cram_md5 (int sock, const char *command, struct query *ctl, const char *s response[8], response[9], response[10], response[11], response[12], response[13], response[14], response[15]); - to64frombits (buf1, reply, strlen(reply)); + to64frombits (buf1, reply, strlen(reply), sizeof buf1); /* ship the authentication back, accept the server's responses */ /* PMDF5.2 IMAP has a bug that requires this to be a single write */ -- cgit v1.2.3