Fix an integer overflow in init_om() that could lead to a double free.
Reported by Jayden Rivers.
This commit is contained in:
parent
79163eedae
commit
c79b35190f
@ -1908,7 +1908,8 @@ init_om(
|
||||
char **required_list;
|
||||
XOrientation *orientation;
|
||||
char **value, buf[BUFSIZ], *bufptr;
|
||||
int count = 0, num = 0, length = 0;
|
||||
int count = 0, num = 0;
|
||||
unsigned int length = 0;
|
||||
|
||||
_XlcGetResource(lcd, "XLC_FONTSET", "on_demand_loading", &value, &count);
|
||||
if (count > 0 && _XlcCompareISOLatin1(*value, "True") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user