-
Notifications
You must be signed in to change notification settings - Fork 31
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
possible invalid usage of realloc #74
Comments
Yes, they should. I've seen the UB Sanitizer point this out, but it's never seemed high priority enough to fix at the moment. Patch welcome! :) [In any case, the tree code is experimental, and isn't used in Couchbase Lite. I.e. it gets dead-stripped.] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here:
https://github.com/couchbaselabs/fleece/blob/60bfb99bfed50329a2a8c3a3fb0cacea074ea799/Fleece/Tree/MutableNode.hh#L332
operator new/delete defined as:
but then
should be malloc/free used instead of
::operator new
in the first place,to make it possible to use
realloc
here?The text was updated successfully, but these errors were encountered: