Compare commits

..

2 commits

Author SHA1 Message Date
629812a2d8 fix: correct pubkey auth response, strncpy warning, and NUL byte validation
- auth_pubkey: return SSH_AUTH_SUCCESS for key offers instead of
  SSH_AUTH_PARTIAL, which incorrectly signals partial authentication
- command history: replace strncpy with snprintf to eliminate
  -Wstringop-truncation warning on GCC
- utf8_is_valid_sequence: reject NUL byte (0x00) in single-byte
  validation to prevent C string truncation attacks

Closes #34
2026-04-19 18:27:50 +08:00
e319c7aa42 fix: remove committed test binaries and add them to .gitignore
macOS-compiled test binaries were tracked by git, causing CI failures
on Linux where they're executed as shell scripts instead of ELF binaries.
2026-04-19 18:27:34 +08:00
3 changed files with 3 additions and 0 deletions

3
.gitignore vendored
View file

@ -8,3 +8,6 @@ host_key.pub
.DS_Store .DS_Store
test.log test.log
*.dSYM/ *.dSYM/
tests/unit/test_utf8
tests/unit/test_message
tests/unit/test_chat_room

Binary file not shown.

Binary file not shown.