Skip to content

Commit 150dead

Browse files
committed
add range check to ext/soap
1 parent 1553ce2 commit 150dead

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/soap/soap.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,11 @@ PHP_METHOD(SoapServer, handle)
15391539
return;
15401540
}
15411541

1542+
if (ZEND_NUM_ARGS() > 0 && ZEND_SIZE_T_INT_OVFL(arg_len)) {
1543+
soap_server_fault("Server", "Input string is too long", NULL, NULL, NULL);
1544+
return;
1545+
}
1546+
15421547
if (SG(request_info).request_method &&
15431548
strcmp(SG(request_info).request_method, "GET") == 0 &&
15441549
SG(request_info).query_string &&

0 commit comments

Comments
 (0)