HomeClusterLabs Projects
Diffusion LibQB 544a7c9e84f7

blackbox: fix potential overlow/memory corruption

Description

blackbox: fix potential overlow/memory corruption

if the message was too long, then msg_len was added to the
buffer size twice, thus causing potential data corruption
(seen VERY rarely in the CI test - or, at least, I think it was
this).

Also fix a double close() spotted by gcc13's -fanalyzer

Details

Provenance
chrissie-cAuthored on Jun 1 2023, 3:23 AM
Parents
rQa3aedbc41923: tests: allow -j to work (#485)
Branches
Unknown
Tags
Unknown