samyeyo / LuaRT

Open source Windows programming framework for Lua
https://www.luart.org
Other
301 stars 19 forks source link

QuickRT gives 'out of bounds index for Buffer' error when using 'crypto' module #221

Open greatwolf opened 2 months ago

greatwolf commented 2 months ago

For example,

crypto.hash('sha1', 'foobar')

that's enough to crash the REPL with msg: out of bounds index for Buffer. A quick search under Issues didn't turn anything up. Is this a known issue? I wonder if this not just limited to crypto module but any others that might rely on buffer object. I didn't check to confirm.

samyeyo commented 2 months ago

It's a bug, Thank you for the report. It concerns the printing of a Buffer object

You can reproduce it in QuickRT with sys.Buffer(5) too