summaryrefslogtreecommitdiff
path: root/sshkey.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-05-04 06:10:48 +0000
committerDamien Miller <djm@mindrot.org>2015-05-10 11:38:04 +1000
commite661a86353e11592c7ed6a847e19a83609f49e77 (patch)
tree5fe2c206d56dd4296a79e20ca6cfbbb83cb7c40c /sshkey.c
parent0ef1de742be2ee4b10381193fe90730925b7f027 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshkey.c b/sshkey.c
index a36004671..83985ca54 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -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)