antirez / antirez/lua-cmsgpack
Wrong size passed into realloc on delete of buf
Aperta
- Lingua principale
- C
- Stelle
- 383
- Fork
- 122
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.