diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-05-04 06:10:48 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-05-10 11:38:04 +1000 |
commit | e661a86353e11592c7ed6a847e19a83609f49e77 (patch) | |
tree | 5fe2c206d56dd4296a79e20ca6cfbbb83cb7c40c /sshkey.c | |
parent | 0ef1de742be2ee4b10381193fe90730925b7f027 (diff) |
upstream commit
Remove pattern length argument from match_pattern_list(), we
only ever use it for strlen(pattern).
Prompted by hanno AT hboeck.de pointing an out-of-bound read
error caused by an incorrect pattern length found using AFL
and his own tools.
ok markus@
Diffstat (limited to 'sshkey.c')
-rw-r--r-- | sshkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -251,7 +251,7 @@ sshkey_names_valid2(const char *names, int allow_wildcard) | |||
251 | if (kt->type == KEY_RSA1) | 251 | if (kt->type == KEY_RSA1) |
252 | continue; | 252 | continue; |
253 | if (match_pattern_list(kt->name, | 253 | if (match_pattern_list(kt->name, |
254 | p, strlen(p), 0) != 0) | 254 | p, 0) != 0) |
255 | break; | 255 | break; |
256 | } | 256 | } |
257 | if (kt->type != -1) | 257 | if (kt->type != -1) |