mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-29 19:10:03 +01:00
Merge branch 'avoid-temporarily-oob-pointer' into 'main'
guniprop.c: Avoid creating (temporarily) out-of-bounds pointers See merge request GNOME/glib!3576
This commit is contained in:
commit
8af4f494b1
@ -573,7 +573,7 @@ g_unichar_toupper (gunichar c)
|
||||
gunichar val = ATTTABLE (c >> 8, c & 0xff);
|
||||
if (val >= 0x1000000)
|
||||
{
|
||||
const gchar *p = special_case_table + val - 0x1000000;
|
||||
const gchar *p = special_case_table + (val - 0x1000000);
|
||||
val = g_utf8_get_char (p);
|
||||
}
|
||||
/* Some lowercase letters, e.g., U+000AA, FEMININE ORDINAL INDICATOR,
|
||||
@ -613,8 +613,8 @@ g_unichar_tolower (gunichar c)
|
||||
gunichar val = ATTTABLE (c >> 8, c & 0xff);
|
||||
if (val >= 0x1000000)
|
||||
{
|
||||
const gchar *p = special_case_table + val - 0x1000000;
|
||||
return g_utf8_get_char (p);
|
||||
const gchar *p = special_case_table + (val - 0x1000000);
|
||||
return g_utf8_get_char (p);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user