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

(from RustyBSD)
This commit is contained in:
David Anderson 2012-12-29 17:10:16 -08:00 committed by Oliver Bock
parent 97e058e190
commit 9209a887cc
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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;