Commit 7273fcef authored by David Mosberger's avatar David Mosberger

ia64: Fix typo in unwinder which could cause NULL-pointer dereferences.

parent c851c3f9
...@@ -1746,7 +1746,7 @@ run_script (struct unw_script *script, struct unw_frame_info *state) ...@@ -1746,7 +1746,7 @@ run_script (struct unw_script *script, struct unw_frame_info *state)
if (!state->pri_unat_loc) if (!state->pri_unat_loc)
state->pri_unat_loc = &state->sw->ar_unat; state->pri_unat_loc = &state->sw->ar_unat;
/* register off. is a multiple of 8, so the least 3 bits (type) are 0 */ /* register off. is a multiple of 8, so the least 3 bits (type) are 0 */
s[dst+1] = (*state->pri_unat_loc - s[dst]) | UNW_NAT_MEMSTK; s[dst+1] = ((unsigned long) state->pri_unat_loc - s[dst]) | UNW_NAT_MEMSTK;
break; break;
case UNW_INSN_SETNAT_TYPE: case UNW_INSN_SETNAT_TYPE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment