stevedonovan / winapi

Minimal but useful Lua bindings to the Windows API
http://stevedonovan.github.com/winapi/api.html
Other
192 stars 40 forks source link

Off-by-1 error in File::raw_read causes crash when garbage collecting #29

Open xoner2 opened 6 years ago

xoner2 commented 6 years ago

the:

lcb_buf(this)[bytesRead] = '\0';

will write past buffer when bytesRead == lcb_bufsz(this)