Skip to content

Commit 38a381a

Browse files
keeskdave
authored andcommitted
affs: struct affs_head: Replace 1-element array with flexible array
AFFS uses struct affs_head's "table" array as a flexible array. Switch this to a proper flexible array[1]. There are no sizeof() uses; struct affs_head is only ever uses via direct casts. No binary output differences were found after this change. Link: KSPP#79 [1] Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Kees Cook <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 256abd8 commit 38a381a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/affs/amigaffs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct affs_head {
8080
__be32 spare1;
8181
__be32 first_data;
8282
__be32 checksum;
83-
__be32 table[1];
83+
__be32 table[];
8484
};
8585

8686
struct affs_tail {

0 commit comments

Comments
 (0)