Skip to content
Snippets Groups Projects
Commit 45f69797 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Ensure line isn't valid is it's not read in parse_string()

Thus appears to have been the root cause of the infinite loop/memory
issue.  Basically, line was never replaced if it didn't match
^{[0-9]+}$ and didn't result in a number when passed to parseInt()
This resulted in an infinite loop that kept pushing zero-length
strings into an array.
parent 9e22b06f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -716,6 +716,9 @@ function parse_command(line)
ret=client.socket.recv(len);
line=client.socket.recvline(10240, 1800);
}
else {
line = undefined;
}
return(ret);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment