]> git.ipfire.org Git - thirdparty/openssl.git/commit
freebsd ktls: avoid unaligned 16 bit length store in ktls_read_record
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Sat, 11 Oct 2025 06:11:07 +0000 (14:11 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Oct 2025 17:25:07 +0000 (19:25 +0200)
commitc33120d0e403b4079e5104fd20040a51930e8d8e
tree7ceb5113df2baf900418cc3a7242f1b51fc0fb8d
parent2f6187866ef1b617e32f27f52ce126ff00e8e144
freebsd ktls: avoid unaligned 16 bit length store in ktls_read_record

This prevents SIGBUS on strict alignment architectures when p+3 is not aligned
for 16 bit access. Behavior is unchanged on x86 and matches the Linux path.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28860)
include/internal/ktls.h