|
Navigation
Search
|
[$] Checked-size array parameters in C
Monday December 1, 2025. 10:11 PM , from LWN.net
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/
Related News |
25 sources
Current Date
Dec, Mon 1 - 23:24 CET
|







