diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-08-09 17:38:53 +0200 |
|---|---|---|
| committer | Gabriel Krisman Bertazi <krisman@suse.de> | 2024-08-13 15:21:50 -0400 |
| commit | 43bf9d9755bd21970d8382dc88f071f74fc18fbf (patch) | |
| tree | 60c041adf57419f326addb2b56829c31ba69e4dd /fs/unicode/utf8data.c_shipped | |
| parent | 17712b7ea0756799635ba159cc773082230ed028 (diff) | |
unicode: constify utf8 data table
All users already handle the table as const data.
Move the table itself into .rodata to guard against accidental or
malicious modifications.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240809-unicode-const-v1-1-69968a258092@weissschuh.net
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Diffstat (limited to 'fs/unicode/utf8data.c_shipped')
| -rw-r--r-- | fs/unicode/utf8data.c_shipped | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/unicode/utf8data.c_shipped b/fs/unicode/utf8data.c_shipped index dafa5fed761d..73a93d49b3ba 100644 --- a/fs/unicode/utf8data.c_shipped +++ b/fs/unicode/utf8data.c_shipped @@ -4107,7 +4107,7 @@ static const unsigned char utf8data[64256] = { 0x81,0x80,0xcf,0x86,0x85,0x84,0xcf,0x86,0xcf,0x06,0x02,0x00,0x00,0x00,0x00,0x00 }; -struct utf8data_table utf8_data_table = { +const struct utf8data_table utf8_data_table = { .utf8agetab = utf8agetab, .utf8agetab_size = ARRAY_SIZE(utf8agetab), |
