mirror of https://github.com/BOINC/boinc.git
- client: don't crash if GUI RPC password is too long
(from RustyBSD)
This commit is contained in:
parent
97e058e190
commit
9209a887cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue