increase maximum SSH2_FXP_READ to match the maximum packet size.
authordjm <djm@openbsd.org>
Fri, 19 Mar 2021 02:18:28 +0000 (02:18 +0000)
committerdjm <djm@openbsd.org>
Fri, 19 Mar 2021 02:18:28 +0000 (02:18 +0000)
commit0e5f17167d21ffd89fe564ffd75c5fe698a729a0
tree757cd677c8c46655d8d48cd959dea81a15536ef5
parente1c3a7d1c1942305f1cedd79e59d4ac9a926bfa6
increase maximum SSH2_FXP_READ to match the maximum packet size.
Also handle zero-length reads that are borderline nonsensical but
not explicitly banned by the spec.
Based on patch from Mike Frysinger, feedback deraadt@ ok dtucker@
usr.bin/ssh/sftp-server.c