Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> And at runtime, libcurl could find itself using a different libc from the application, so a buffer malloc’d in libc can’t be passed to free() by the app.

That's a general issue with C plugins/libraries. You cannot even assume that objects are allocated with malloc() because the library might use its own memory allocator, object pool, etc.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: