rzel / kahlua

Automatically exported from code.google.com/p/kahlua
0 stars 0 forks source link

readLuaString is not thorough #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When loading string, kahlua calls in.read(...) and then asserts that it
read the full length.
This is wrong, InputStream.read is not guaranteed to read the full length.
The attached patch fixes this, replacing the read call with readFully.

Original issue reported on code.google.com by matej...@gmail.com on 2 Feb 2010 at 12:59

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks!
Patch looks good, committed to latest subversion.

Original comment by kristofer.karlsson@gmail.com on 2 Feb 2010 at 6:57