super-agent / msgpack

Luajit implementation of msgpack format
MIT License
5 stars 2 forks source link

fixed segfault in luvit #5

Open lil-evil opened 1 year ago

lil-evil commented 1 year ago

When using msgpack with luvit (version 2.18.1) an segfault occur. It seems that was happening with encoded floats, it means that when decoding floats value, a segfault happen when quitting luvit repl (and from script too). Valgrind shown a free error within luajit (some address out of bound)

So, to correct that, I added the string length as a third argument to "ffi.copy" which avoid this behavior.