-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to CMT plugins runtime crash on MSVC #5
Conversation
The only way the original code could have caused a double deletion of |
I agree with that but since this got merged, will need to revert this and open another pr, which is a tad bit more effort and since the issue has been fixed (though in a less intuitive way), I don't really want to do that. If i run into any issues with this approach, I will consider this.
That guard came because I'm setting the pointer to |
So should only the |
I found the actual issue here. When
This isn't a double-free, nor is it caused by one; it's a heap buffer overflow. I put a code breakpoint after the allocation of |
This reverts commit 835108b. This change is redundant and does not fix the bug it was intended to.
This reverts commit 835108b. This change is redundant and does not fix the bug it was intended to.
CMT plugins were causing a heap corruption overflow because of attempts to delete already delete data. The code before was crash prone due to double deletion. I would be upstreaming this change.