Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23ca7b64 authored by John Johansen's avatar John Johansen
Browse files

apparmor: check that xindex is in trans_table bounds

parent f7da2de0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -676,7 +676,7 @@ static bool verify_xindex(int xindex, int table_size)
	int index, xtype;
	xtype = xindex & AA_X_TYPE_MASK;
	index = xindex & AA_X_INDEX_MASK;
	if (xtype == AA_X_TABLE && index > table_size)
	if (xtype == AA_X_TABLE && index >= table_size)
		return 0;
	return 1;
}