Commit 9209a887 authored by David Anderson's avatar David Anderson Committed by Oliver Bock

- client: don't crash if GUI RPC password is too long

    (from RustyBSD)
parent 97e058e1
......@@ -7978,6 +7978,14 @@ David 29 Dec 2012
- gui_rpc_auth.cfg is empty, or
- it doesn't exist and we can't open it for writing, or
- the write to it fails
(from RustyBSD)
client/
gui_rpc_server.cpp
David 29 Dec 2012
- client: don't crash if GUI RPC password is too long
(from RustyBSD)
client/
gui_rpc_server_ops.cpp
......@@ -80,7 +80,7 @@ void GUI_RPC_CONN::handle_auth1(MIOFILE& fout) {
}
int GUI_RPC_CONN::handle_auth2(char* buf, MIOFILE& fout) {
char nonce_hash[256], nonce_hash_correct[256], buf2[256];
char nonce_hash[256], nonce_hash_correct[256], buf2[512];
if (!parse_str(buf, "<nonce_hash>", nonce_hash, 256)) {
auth_failure(fout);
return ERR_AUTHENTICATOR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment