mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 00:00:54 +03:00
Check index length.
This commit is contained in:
@@ -200,7 +200,10 @@ public class OpenSSHKnownHosts
|
||||
if (marker != null) {
|
||||
i++;
|
||||
}
|
||||
|
||||
if(split.length < 3) {
|
||||
LOG.error("Error reading entry `{}`", line);
|
||||
return null;
|
||||
}
|
||||
final String hostnames = split[i++];
|
||||
final String sType = split[i++];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user