Skip to content
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

Database SQLITE RCO Static Buffer #7

Closed
eeriegeek opened this issue Nov 17, 2013 · 0 comments
Closed

Database SQLITE RCO Static Buffer #7

eeriegeek opened this issue Nov 17, 2013 · 0 comments

Comments

@eeriegeek
Copy link
Contributor

Working with some of the database stuff again, building on CentOS 6.4, I found that the SQLite adapter was producing a server memory fault (glibc detected ... free(): invalid pointer) when extracting an object via RCO from the database. The return pointer passed back is to a statically allocated fixed size buffer. It appears that the server attempts to deallocate this with free, producing the fault. Patching the code to return a heap allocated buffer eliminates the problem. Patch submitted.

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

No branches or pull requests

2 participants