antirez / antirez/lua-cmsgpack
Wrong size passed into realloc on delete of buf
Ouverte
- Langage dominant
- C
- Étoiles
- 383
- Forks
- 122
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.