Commit bb8e4ce5 authored by Thorsten Blum's avatar Thorsten Blum Committed by Anna Schumaker
Browse files

nfs: Annotate struct nfs_cache_array with __counted_by()



Add the __counted_by compiler attribute to the flexible array member
array to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.

Increment size before adding a new struct to the array.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: default avatarAnna Schumaker <anna.schumaker@oracle.com>
parent d98f7227
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment