• [$] Checked-size array parameters in C

    From LWN.net@86:200/23 to All on Tue Dec 2 06:40:08 2025
    There are many possible programmer mistakes that are not caught by the
    minimal checks specified by the C language; among those is passing an array
    of the wrong size to a function. A recent attempt to add some safety
    around array parameters within the crypto layer involved the use of some
    clever tricks, but it turns out that clever tricks are unnecessary in this case. There is an obscure C feature that can cause this checking to
    happen, and it is already in use in a few places within the kernel.

    https://lwn.net/Articles/1046840/
    --- SBBSecho 3.32-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (86:200/23)