You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fairly straight forward, in buffer.cpp we free the finished entry and then unlink it from the list, which is a bug as the order is wrong. When we access buffer->head->next to unlink the current entry, we're accessing the entry we just free'd. It is easily fixed by switching the order of those operations.
The text was updated successfully, but these errors were encountered:
Fairly simple, the finished entry is free'd and then removed from the
list, but that order results in us accessing the entry's next member
after it has been free'd. Swapping the order of the operations fixes the
issue.
Fixes: QB64-Phoenix-Edition#281
mkilgore
added a commit
to mkilgore/QB64pe
that referenced
this issue
Jan 9, 2023
Fairly simple, the finished entry is free'd and then removed from the
list, but that order results in us accessing the entry's next member
after it has been free'd. Swapping the order of the operations fixes the
issue.
Fixes: QB64-Phoenix-Edition#281
Fairly straight forward, in buffer.cpp we free the finished entry and then unlink it from the list, which is a bug as the order is wrong. When we access
buffer->head->next
to unlink the current entry, we're accessing the entry we just free'd. It is easily fixed by switching the order of those operations.The text was updated successfully, but these errors were encountered: