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

Check for invalid line thing...

Implicated in possible infinite loop/OOM problems.
parent 55cc09eb
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -707,6 +707,8 @@ function parse_command(line)
{
var ret='';
if (line.search(/^{([0-9]+)}$/) !== 0)
throw new Error('invalid line, aborting');
line=line.replace(/^{([0-9]+)}$/, "$1");
client.socket.send("+ Give me more of that good stuff\r\n");
var len = parseInt(line);
......
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