bare-ssh2 parses SFTP handles via bufferSlice/safer-buffer — handles are often

Uint8Array views that fail Buffer.isBuffer; READ/CLOSE/FSTAT/WRITE/READDIR were
rejecting every request with SSH_FX_FAILURE. Add sftpHandleId() using DataView.

OPEN: fix inner try indentation. CHANGELOG: note handle decoding + earlier SFTP
hardening (vfs normalize, enqueueSftpReply, Protocol/SFTP DATA coerce).
This commit is contained in:
Raven Scott
2026-04-21 18:22:32 -04:00
parent ac699f308e
commit 36492de3d9
11 changed files with 426 additions and 408 deletions
@@ -1,7 +1,7 @@
{
"schema": 2,
"profileId": "bare-os-posix-like",
"generatedAt": "2026-04-21T22:11:56.311Z",
"generatedAt": "2026-04-21T22:22:05.245Z",
"note": "Sparse POSIX Issue 7 coverage hints for /bin utilities. Omitted command names are not yet profiled here.",
"commandIndex": [
{