Strictly enforce the maximum allowed SSH2 banner size in ssh-keyscan
authordtucker <dtucker@openbsd.org>
Fri, 19 Aug 2022 04:02:46 +0000 (04:02 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 19 Aug 2022 04:02:46 +0000 (04:02 +0000)
commit3cb3daa3a8cee4463a2bab2aca0ae2c2255ae05f
tree67055dfd9ce980fcfaabdfd8a0262880c2d31837
parent56f45a56c4c4c99dd61a67b1122522da0f03c0cc
Strictly enforce the maximum allowed SSH2 banner size in ssh-keyscan
and prevent a one-byte buffer overflow.  Patch from Qualys, ok djm@
usr.bin/ssh/ssh-keyscan.c