wolfssh/tests
John Safranek eb3d3cedb8 sftp: bound reply lengths before client allocs
SFTP_GetHeader now takes a limit from its caller and refuses a declared
body over it, or one too short to hold the header, with WS_BUFFER_E.
Every client reply handler allocated a buffer of the peer-declared size
first, so one 9-byte header could make the client allocate 2 GiB.

- STATUS, ATTRS and HANDLE replies are held to WOLFSSH_MAX_SFTP_PACKET
- NAME keeps WOLFSSH_MAX_SFTP_NAME; DoName's own check moves into
  the call
- a READ reply may also be as large as the caller's buffer plus its
  length prefix
- SendWritePacket keeps an error already set instead of
  WS_SFTP_BAD_HEADER
- regress test drives all eleven client calls at and past the bound

Issue: F-10598, F-13430, F-14433
2026-11-01 23:29:33 -06:00
..
api.c Hold algorithm-list names to RFC 4251 format 2026-10-25 16:17:26 -05:00
api.h Release v1.4.22 2025-12-29 16:53:33 -08:00
auth.c Build cleanly with a C++ compiler 2026-10-22 21:30:18 -05:00
auth.h tests: cover the ML-DSA host public key cache 2026-10-19 09:07:39 -07:00
include.am tests: gate the client cases in regress.c 2026-09-22 17:05:22 -05:00
kex.c Fix ML-DSA composite logic from code review 2026-09-21 11:11:16 -07:00
kex.h Release v1.4.22 2025-12-29 16:53:33 -08:00
regress.c sftp: bound reply lengths before client allocs 2026-11-01 23:29:33 -06:00
sftp.c tests: split the SFTP server and client argv 2026-09-22 14:35:24 -05:00
sftp.h Release v1.4.22 2025-12-29 16:53:33 -08:00
testsuite.c ssh: add a rekey-state accessor 2026-09-24 22:56:41 -07:00
testsuite.h Release v1.4.22 2025-12-29 16:53:33 -08:00
unit.c sftp: bound reply lengths before client allocs 2026-11-01 23:29:33 -06:00
unit.h Release v1.4.22 2025-12-29 16:53:33 -08:00