6543 c5e5063ec9 Fix SSH2 conditonal in key parsing code (#8806) (#8810)
Avoid out of bounds error by using strings.HasPrefix to check for
starting SSH2 text rather than assuming user input has at least 31
characters.

Add tests for bad input as well.

Fixes #8800
2019-11-03 22:51:32 +08:00
..
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-09-24 21:22:39 +08:00
2019-09-24 21:22:39 +08:00
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-08-23 12:40:29 -04:00
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2018-10-20 18:19:21 -04:00
2019-06-12 15:41:28 -04:00
2019-08-23 12:40:29 -04:00