[Swan-commit] Changes to ref refs/heads/main

D. Hugh Redelmeier hugh at vault.libreswan.fi
Wed Jul 26 08:39:47 EEST 2023

New commits:
commit 9d8189f5f40f8c311cc239b1c26afc1d2bf40128
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date:   Wed Jul 26 01:35:16 2023 -0400

    netlink_attrib: guard memcpy from invalid pointers
    A common assumption is that memcpy address arguments need not be valid
    if the length is zero.  The C standard says this is wrong.
    In the case of this memcpy call, the source pointer might be NULL
    if the length is zero.
    We now skip the memcpy if the length is 0.
    Found by lclint.

More information about the Swan-commit mailing list