Hello, LuaTeX doesn't segfault on invalid UTF-8 appearing in a file: this simply leads to a fatal error. However, one can build invalid UTF-8 using the bytes ^^^^^^110000 to ^^^^^^1100ff. If one builds a control sequence whose name is invalid UTF-8, then try to convert this sequence to a string, LuaTeX segfaults. Namely, both \expandafter\string\csname ^^^^^^1100ff\endcsname and \number\expandafter`\csname ^^^^^^1100ff\endcsname make LuaTeX segfault, but \edef\foo{\csname ^^^^^^1100ff\endcsname} \show\foo does not (even though the invalid UTF-8 name is written to the terminal). Regards, Bruno
On 01/13/2013 08:48 PM, Bruno Le Floch wrote:
Hello,
LuaTeX doesn't segfault on invalid UTF-8 appearing in a file: this simply leads to a fatal error. However, one can build invalid UTF-8 using the bytes ^^^^^^110000 to ^^^^^^1100ff. If one builds a control sequence whose name is invalid UTF-8, then try to convert this sequence to a string, LuaTeX segfaults. Namely, both ...
Thanks for the report. Tracker item added: http://tracker.luatex.org/view.php?id=802 Best wishes, Taco
On 1/14/13, Taco Hoekwater
On 01/13/2013 08:48 PM, Bruno Le Floch wrote:
Hello,
LuaTeX doesn't segfault on invalid UTF-8 appearing in a file: this simply leads to a fatal error. However, one can build invalid UTF-8 using the bytes ^^^^^^110000 to ^^^^^^1100ff. If one builds a control sequence whose name is invalid UTF-8, then try to convert this sequence to a string, LuaTeX segfaults. Namely, both ...
Thanks for the report. Tracker item added:
http://tracker.luatex.org/view.php?id=802
Best wishes, Taco
I should've done that. Thanks. Regards, Bruno
participants (2)
-
Bruno Le Floch
-
Taco Hoekwater