summaryrefslogtreecommitdiff
path: root/src/lib/tests
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-07-10 17:09:58 +0200
committerSander Vrijders <sander@ouroboros.rocks>2026-07-19 11:44:35 +0200
commitaa28f5bf5bd92e69c0e89a1a36c7c95f28b7057c (patch)
tree90600bc702de0ee105c988bf5c792f324e0eab31 /src/lib/tests
parentde9c30b2071e4aff8819d29c03d98767c8a3ec5b (diff)
downloadouroboros-aa28f5bf5bd92e69c0e89a1a36c7c95f28b7057c.tar.gz
ouroboros-aa28f5bf5bd92e69c0e89a1a36c7c95f28b7057c.zip
irmd: Avoid in-place byteswap in OAP header
gcc 12 -fanalyzer misclassifies kex_len = hton16(kex_len) followed by memcpy(&kex_len) as a read of an uninitialized value. Write the swapped value through the scratch variable like every other field in write_oap_fixed(). Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/tests')
0 files changed, 0 insertions, 0 deletions