source-controller/pkg/git
Sunny 10d262032c libgit2: handle EOF in parseKnownHosts()
parseKnownHosts() uses golang.org/x/crypto/ssh's ParseKnownHosts() for
parsing known hosts. It returns EOF error when the input is not a host
public key, but a valid known_hosts content, like a comment line.

With this fix, lines causing EOF error are skipped and the parsing of
the known_hosts file continues. But invalid lines still cause parsing
failure.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2021-10-28 17:35:46 +05:30
..
gogit transportAuth(): Add checks for invalid transports 2021-10-27 16:59:26 +05:30
libgit2 libgit2: handle EOF in parseKnownHosts() 2021-10-28 17:35:46 +05:30
strategy Update gittestserver 2021-10-27 00:43:31 +05:30
git.go git: styling nitpicks 2021-10-27 00:43:31 +05:30
git_test.go pkg/git: AuthOptions.Validate() test improvements 2021-10-27 00:43:31 +05:30
options.go Add Host field check in AuthOptions.Validate() 2021-10-27 00:43:31 +05:30
options_test.go Add Host field check in AuthOptions.Validate() 2021-10-27 00:43:31 +05:30