hwhw/kindlepdfviewer — pull request #408 by tigran123 (2012-10-09 22:15:51+00:00)
Title: Possible fix for the memory corruption issue #401

In the function renderUtf8Text() I added a variable `buffer_width` which
was intended to be local but I forgot the keyword `local` in front of
it. This overwrote whatever global `buffer_width` there might be and
caused a serious memory corruption described in issue \#401. Although
grepping our *.lua sources did not reveal any `buffer_width` variable I
assume that there is one elsewhere (i.e. Lua's own internal namespace is
"pollutable" by user's code) because this little change definitely does
make an awful amount of difference...