Skip to content

Commit 53044ec

Browse files
Loosen check for debugging session port (#230)
Tiny change to allow the content debugging session handshake to succeed even if additional bytes are sent after the session port
1 parent 1a575d5 commit 53044ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ bool initialize_debugger(JSContext *cx, uint16_t port, bool content_already_init
190190
}
191191

192192
uint16_t session_port = std::strtoul(response.begin(), &end, 10);
193-
if (end != response.end() || session_port > 65535) {
193+
if (session_port < 1024 || session_port > 65535) {
194194
printf("Invalid debugging session port '%*s' received, continuing without debugging ...\n",
195195
static_cast<int>(response.len), response.begin());
196196
return true;

0 commit comments

Comments
 (0)