Remove pattern length argument from match_pattern_list(),
authordjm <djm@openbsd.org>
Mon, 4 May 2015 06:10:48 +0000 (06:10 +0000)
committerdjm <djm@openbsd.org>
Mon, 4 May 2015 06:10:48 +0000 (06:10 +0000)
commit59480edead391337354aa3173c0e72de67c8490e
tree68350843474d6c50a3f1db7bd12d0fa2c6910148
parent419292d6be89842dfcc6220e2db86c24e80b6ece
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@
14 files changed:
usr.bin/ssh/auth2-hostbased.c
usr.bin/ssh/auth2-pubkey.c
usr.bin/ssh/clientloop.c
usr.bin/ssh/compat.c
usr.bin/ssh/groupaccess.c
usr.bin/ssh/hostfile.c
usr.bin/ssh/match.c
usr.bin/ssh/match.h
usr.bin/ssh/monitor.c
usr.bin/ssh/readconf.c
usr.bin/ssh/servconf.c
usr.bin/ssh/ssh.c
usr.bin/ssh/sshconnect2.c
usr.bin/ssh/sshkey.c