mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
isofs: Annotate struct SL_component with __counted_by()
Add the __counted_by compiler attribute to the flexible array member text to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> Signed-off-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20240830164902.112682-2-thorsten.blum@toblux.com
This commit is contained in:
parent
edb46ddbc5
commit
116249b129
@ -44,7 +44,7 @@ struct RR_PN_s {
|
|||||||
struct SL_component {
|
struct SL_component {
|
||||||
__u8 flags;
|
__u8 flags;
|
||||||
__u8 len;
|
__u8 len;
|
||||||
__u8 text[];
|
__u8 text[] __counted_by(len);
|
||||||
} __attribute__ ((packed));
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
struct RR_SL_s {
|
struct RR_SL_s {
|
||||||
|
Loading…
Reference in New Issue
Block a user