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

Wrong size passed into realloc on delete of buf #41

Open
tmiv opened this issue Mar 19, 2015 · 1 comment
Open

Wrong size passed into realloc on delete of buf #41

tmiv opened this issue Mar 19, 2015 · 1 comment

Comments

@tmiv
Copy link

tmiv commented Mar 19, 2015

In mp_buf_free in file lua_cmsgpack.c line 133 reads mp_realloc(buf->L, buf->b, buf->len, 0); when it should read mp_realloc(buf->L, buf->b, buf->len + buf->free, 0);

realloc is passed the wrong osize. That can be problematic if the implementation of realloc is sensitive to it.

@ensonic
Copy link

ensonic commented Sep 30, 2016

I think this has been fixed by
4d94cab

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