From 605f889ab57c3465523104812fbf3edeb1e513d9 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 16 Jan 2022 14:17:46 -0500 Subject: Avoid sending null byte in SASL PLAIN Woops! BASE64_SIZE is the size of the string buffer. Somehow ergo is the only server software (that I know of) to reject the accidental null byte. Reported by smlavine. --- handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handle.c') diff --git a/handle.c b/handle.c index 5d61081..e460c7c 100644 --- a/handle.c +++ b/handle.c @@ -219,7 +219,7 @@ static void handleAuthenticate(struct Message *msg) { char b64[BASE64_SIZE(sizeof(buf))]; base64(b64, buf, len); ircFormat("AUTHENTICATE "); - ircSend(b64, BASE64_SIZE(len)); + ircSend(b64, BASE64_SIZE(len) - 1); ircFormat("\r\n"); explicit_bzero(b64, sizeof(b64)); -- cgit 1.4.1 dontfiles
summary refs log tree commit diff
path: root/doc/zlib/compress.3 (unfollow)
Commit message (Expand)Author
2021-01-12List both Makefile and html.sh under README.7June McEnroe
2021-01-12Add htagml exampleJune McEnroe
2021-01-12Use mandoc and htagml for bin htmlJune McEnroe
2021-01-12Add htagmlJune McEnroe
2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe
2021-01-11Publish "Using vi"June McEnroe
2021-01-11Enable diff.colorMovedJune McEnroe
2021-01-10Set less search case-insensitiveJune McEnroe
2021-01-10Set EXINITJune McEnroe
2021-01-09Add c -t flag to print expression typeJune McEnroe
2021-01-05Update taglineJune McEnroe