wolfssh/examples/echoserver
John Safranek ab8a44afdb echoserver: bound the key list parse and copies
LoadPublicKeyBuffer() searches for its delimiters only up to the end
of the buffer, so a -j file without a final newline is rejected
instead of read past. The sample password, public key, and none lists
are copied into keyLoadBuf only when they fit.

- Add FindDelimiter() in place of the unbounded WSTRCHR() calls
- Add CopyToKeyLoadBuf(), which refuses a string with no room for its
  terminator and still accepts an empty one
- Parse a -j file by the bytes actually read, and stop when the read
  fails
- Warn when a -j file's keys are not all loaded
- Fix the comment claiming every sample key is ssh-rsa

Issue: F-10600, F-10565, F-14765
2026-11-05 11:06:47 -06:00
..
echoserver.c echoserver: bound the key list parse and copies 2026-11-05 11:06:47 -06:00
echoserver.h
…
include.am
…