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

Commit aa2f63c9 authored by Roel Kluin's avatar Roel Kluin Committed by Tony Luck
Browse files

[IA64] Do not go beyond ARRAY_SIZE of unw.hash



static struct {

... :114
        unsigned short hash[UNW_HASH_SIZE];

... :2152
	for (index = 0; index <= UNW_HASH_SIZE; ++index) {

This is a bug, isn't it?

s/<=/</

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 6b1ff036
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2149,7 +2149,7 @@ unw_remove_unwind_table (void *handle)


	/* next, remove hash table entries for this table */
	/* next, remove hash table entries for this table */


	for (index = 0; index <= UNW_HASH_SIZE; ++index) {
	for (index = 0; index < UNW_HASH_SIZE; ++index) {
		tmp = unw.cache + unw.hash[index];
		tmp = unw.cache + unw.hash[index];
		if (unw.hash[index] >= UNW_CACHE_SIZE
		if (unw.hash[index] >= UNW_CACHE_SIZE
		    || tmp->ip < table->start || tmp->ip >= table->end)
		    || tmp->ip < table->start || tmp->ip >= table->end)