summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/div.3
diff options
context:
space:
mode:
authorjsing <>2026-05-06 15:02:51 +0000
committerjsing <>2026-05-06 15:02:51 +0000
commite162d1d43a0870508c4db32a52b441f1b7d96ebe (patch)
tree0ab1491176809140f9a95fa946d6ef668f74593b /src/lib/libc/stdlib/div.3
parentda19cc86929787482add39a31b6d4de43375bf68 (diff)
downloadopenbsd-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/stdlib/div.3')
0 files changed, 0 insertions, 0 deletions