Fix for index outside the bounds.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2019-07-01 21:08:07 +02:00
parent 4d150c2fe3
commit a09c6b3fad
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -50,7 +50,7 @@ class Test {
print($headers[$pos], "\n");
cIterator: {
print(" ", $headers[$pos][$c], "\n");
if(!($headers[$pos][++$c])) {
if(strlen($headers[$pos]) <= ++$c) {
goto cIteratorExit;
}
goto cIterator;