Skip to content

Fix handle_dot_label heap-out-of-bound#243

Merged
PeterJohnson merged 1 commit intoyasm:masterfrom
cla7aye15I4nd:fix-oob-handle_dot_label
Sep 22, 2023
Merged

Fix handle_dot_label heap-out-of-bound#243
PeterJohnson merged 1 commit intoyasm:masterfrom
cla7aye15I4nd:fix-oob-handle_dot_label

Conversation

@cla7aye15I4nd
Copy link
Contributor

In the current implementation, there is a possible heap-out-of-bound error. It appears that the variable zeropos is used to index the array tok, but it should not be present in the str_val. This seems to be a typo, and I suggest either replacing it with tok[zeropos+2] or str_val[2].

@PeterJohnson PeterJohnson merged commit ecb47f1 into yasm:master Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants