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

Check for invalid line thing...

Implicated in possible infinite loop/OOM problems.
parent f17258fe
No related branches found
No related tags found
No related merge requests found
......@@ -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