[openssl/openssl] 46b516: quic: avoid one-byte over-read of conn close reaso...

"'Dexter.k' via openssl-commits" <[email protected]>
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 46b5165d44562724647d538047aa8568421def45
      https://github.com/openssl/openssl/commit/46b5165d44562724647d538047aa8568421def45
  Author: rootvector2 <[email protected]>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M ssl/quic/quic_channel.c

  Log Message:
  -----------
  quic: avoid one-byte over-read of conn close reason in copy_tcause

For a remote CONNECTION_CLOSE, src->reason points straight into the
received packet and holds exactly reason_len bytes with no guaranteed
trailing byte. copy_tcause() did OPENSSL_memdup(src->reason, l + 1),
reading one byte past the source. The +1 is only needed to make room
for the NUL written at r[l], so allocate l + 1 but copy only the l
valid bytes.

Fixes: 40c8c756c86f "QUIC APL/CHANNEL: Wire up connection closure reason"

Reviewed-by: Eugene Syromiatnikov <[email protected]>
Reviewed-by: Kurt Roeckx <[email protected]>
MergeDate: Wed Jun  3 11:39:47 2026
(Merged from https://github.com/openssl/openssl/pull/31349)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/master/d056bc-46b516%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.