antirez / antirez/lua-cmsgpack
Wrong size passed into realloc on delete of buf
Abierto
- Lenguaje dominante
- C
- Estrellas
- 383
- Forks
- 122
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.