summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-21 16:26:08 -0500
committerJune McEnroe <june@causal.agency>2019-11-21 16:26:08 -0500
commit407adf0ddd1be0b80de206d012b944b8113d02d2 (patch)
treeeb3d6cccf90ed594f07ccfcb8013d9438aa2c9ce
parentUse a static buffer for plainBase64 (diff)
downloadpounce-407adf0ddd1be0b80de206d012b944b8113d02d2.tar.gz
pounce-407adf0ddd1be0b80de206d012b944b8113d02d2.zip
Zero temporary SASL PLAIN buffer
-rw-r--r--state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/state.c b/state.c
index 09156ff..154e16d 100644
--- a/state.c
+++ b/state.c
@@ -60,6 +60,7 @@ void stateLogin(
 				buf[1 + i] = (plain[i] == ':' ? 0 : plain[i]);
 			}
 			base64(plainBase64, buf, len);
+			explicit_bzero(buf, sizeof(buf));
 		}
 	}
 	serverFormat("NICK %s\r\n", nick);
of a hack but oh well. 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe