Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
fix: access outside the deco array when error in U:
Browse files Browse the repository at this point in the history
Issue #92.
  • Loading branch information
moinejf committed May 3, 2021
1 parent 81a8954 commit b19a91d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -3068,7 +3068,8 @@ static struct SYMBOL *get_info(struct SYMBOL *s)
s = get_global_def(s);
break;
case 'U':
deco[s->u.user.symbol] = parse.deco_tb[s->u.user.value - 128];
if (s->u.user.value) // if no error
deco[s->u.user.symbol] = parse.deco_tb[s->u.user.value - 128];
break;
case 'u':
break;
Expand Down

0 comments on commit b19a91d

Please sign in to comment.