BBS:      TELESC.NET.BR
Assunto:  src/ssh/ssh-trans.c
De:       Deuc¨
Data:     Mon, 23 Mar 2026 20:49:18 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/711699d05f3b5acb635ff906
Modified Files:
	src/ssh/ssh-trans.c
Log Message:
Fix send_packet buffer overflow with large MAC digest

Move mac_len computation before the packet buffer size check so the
overflow guard accounts for the MAC bytes that will be appended after
the encrypted packet.  Without this, a MAC module with a digest larger
than the padding headroom could write past the end of tx_packet.

Co-Authored-By: Claude Opus 4.6 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]