diff options
| author | jsing <> | 2026-05-06 15:02:51 +0000 |
|---|---|---|
| committer | jsing <> | 2026-05-06 15:02:51 +0000 |
| commit | e162d1d43a0870508c4db32a52b441f1b7d96ebe (patch) | |
| tree | 0ab1491176809140f9a95fa946d6ef668f74593b /src/lib/libc/string/strcoll.c | |
| parent | da19cc86929787482add39a31b6d4de43375bf68 (diff) | |
| download | openbsd-e162d1d43a0870508c4db32a52b441f1b7d96ebe.tar.gz openbsd-e162d1d43a0870508c4db32a52b441f1b7d96ebe.tar.bz2 openbsd-e162d1d43a0870508c4db32a52b441f1b7d96ebe.zip | |
Avoid use of uninitialised decode_error variable.
Pull initialisation of decode_error and invalid_key up to
tls_key_share_{client,server}_peer_public(), which are the entry points
for the key share code. The entry point was previously
tls_key_share_peer_public(), however with the introduction of MLKEM this
was split into separate client and server functions, without the
initialisation being included. Also initialise decode_error and
invalid_params on entry to tls_key_share_peer_params().
Code that reaches tls_key_share_client_peer_public_mlkem768x25519() could
previously result in code branching based on decode_error, which is
uninitialised stack based memory.
Thanks to Guido Vranken of Aisle Research for reporting this issue.
With and ok tb@
Diffstat (limited to 'src/lib/libc/string/strcoll.c')
0 files changed, 0 insertions, 0 deletions
