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
Tidy 5.7.20 crashes if allocator replaced #797
Comments
@dd8 thanks for catching this Given that
Will try to include this easy fix somewhere... unless someone beats me to it, with say a |
I do have a patch which has been tested in production, so I can package that up and attach it to this issue |
@dd8 that would be appreciated... maybe I can then include it in the next |
Here's the patch Compiles in XCode 10 clang on Mac, Visual Studio 2015 on Windows Not tested on Linux/gcc |
@dd8 now applied, version 5.7.22... thanks... |
attrs.c
DefinePriorityAttribute allocates priorities->list using TidyAlloc(), but re-allocates using realloc() instead of TidyRealloc(), which crashes if TidyAlloc didn't allocate memory via malloc
message.c
DefineMutedMessage allocates list->list using TidyAlloc(), but re-allocates using realloc() instead of TidyRealloc(), which crashes if TidyAlloc didn't allocate memory via malloc
The text was updated successfully, but these errors were encountered: