Compare commits

..

1 commit

Author SHA1 Message Date
6781aff538 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:13:01 +08:00
3 changed files with 0 additions and 3 deletions

3
.gitignore vendored
View file

@ -8,6 +8,3 @@ 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

BIN
tests/unit/test_message Executable file

Binary file not shown.

BIN
tests/unit/test_utf8 Executable file

Binary file not shown.