[Dev-luatex] Memory leak in string.explode()?

minux minux.ma at gmail.com
Mon Nov 5 07:40:51 CET 2012


On Mon, Nov 5, 2012 at 9:32 AM, Reinhard Kotucha <reinhard.kotucha at web.de>wrote:

> ---------------------------------
> #! /usr/bin/env texlua
> --*- Lua -*-
>
> s='abc def'; t=s.explode(' +')
> s=' abc def'; t=s:explode(' +')
> s='abc def '; t=s:explode(' +')
> ---------------------------------
>
> Each of the tree lines results in a core dump with rev 4468.  They
> don't crash in current TeX Live, though there are no complaints about
> the syntax error in the first line (s is a string here, not a table).

Please try the simple patch attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/dev-luatex/attachments/20121105/6e48866d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luatex-split-corrupt-free.patch
Type: application/octet-stream
Size: 1217 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/dev-luatex/attachments/20121105/6e48866d/attachment.obj>


More information about the dev-luatex mailing list