lua: fix CVE-2014-5461
Merge pull request #782 from pyhalov/lua

lua: fix CVE-2014-5461