From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89514 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: [fontloader] crash in font-otf.lua / actions["reorganize glyph anchors"] Date: Sun, 14 Dec 2014 16:23:31 +0100 Message-ID: <20141214152331.GA22546@acheron> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0729749291==" X-Trace: ger.gmane.org 1418571854 8418 80.91.229.3 (14 Dec 2014 15:44:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 15:44:14 +0000 (UTC) To: ConTeXt ML Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 14 16:44:10 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y0BL7-0000nt-B8 for gctc-ntg-context-518@m.gmane.org; Sun, 14 Dec 2014 16:44:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BFF9910203 for ; Sun, 14 Dec 2014 16:44:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6B14j76FdR2n for ; Sun, 14 Dec 2014 16:44:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 937BE1023F for ; Sun, 14 Dec 2014 16:41:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CFD7A101FE for ; Sun, 14 Dec 2014 16:41:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pIzLetbI0VM0 for ; Sun, 14 Dec 2014 16:41:24 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 75E121020E for ; Sun, 14 Dec 2014 16:23:43 +0100 (CET) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sBEFNbvZ017494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 14 Dec 2014 16:23:42 +0100 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal01.urz.uni-heidelberg.de [129.206.100.97]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id sBEFNWbu010960; Sun, 14 Dec 2014 16:23:33 +0100 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (Postfix) with ESMTPS id CD40721F0F80; Sun, 14 Dec 2014 16:23:32 +0100 (CET) Original-Received: from localhost (stgt-5f71880e.pool.mediaWays.net [95.113.136.14]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id sBEFNVp7012421 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 14 Dec 2014 16:23:32 +0100 Mail-Followup-To: ConTeXt ML X-Operating-System: Linux acheron 3.17.3-1-ARCH User-Agent: Mutt/1.5.23 (2014-03-12) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: =?UTF-8?Q?ip=3D129.206.210.211; _country=3DDE; _region=3DBaden-W=C3=BCrttemberg_Region; _city=3DHeidelberg; _latitude=3D49.3757; _longitude=3D8.6911; _http://maps.google.com/maps=3Fq=3D49.3757,8.6911&z=3D6?= X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06NrrnBcR - c502ea119694 - 20141214 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89514 Archived-At: --===============0729749291== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MW5yreqqjyrRcusr" Content-Disposition: inline --MW5yreqqjyrRcusr Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hans, this bug was reported a while ago by user Th=C3=A9r=C3=A8se on tex.stackexchange.com [1]. The font =E2=80=9CEadui.ttf=E2=80=9D [2] causes = the fontloader to access a nil value because the =E2=80=9CAnchor-1=E2=80=9D tab= le is sparse (nil at index 3). Test file for Context: https://bitbucket.org/phg/lua-la-tex-tests/src/tip/cnt-eadui.tex Patch attached, though I suspect it covers only the symptoms. Philipp [1] http://tex.stackexchange.com/q/195481/14066 [2] Download at http://openfontlibrary.org/font/eadui --3V7upXqbjpZ4EhLz Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="font-otf.lua_reorganize_glyphs.patch" diff --git a/tex/context/base/font-otf.lua b/tex/context/base/font-otf.lua index 302d8ea..de392a9 100644 --- a/tex/context/base/font-otf.lua +++ b/tex/context/base/font-otf.lua @@ -2010,7 +2010,11 @@ actions["reorganize glyph anchors"] = function(data,filename,raw) -- when we rep for tag, specification in next, data do for i=1,#specification do local si = specification[i] - specification[i] = { si.x or 0, si.y or 0 } + if si then + specification[i] = { si.x or 0, si.y or 0 } + else + specification[i] = { } + end end end else --3V7upXqbjpZ4EhLz-- --MW5yreqqjyrRcusr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJUjatzAAoJEFp67MUiL/UEoOkP/30qNjxOG9+7ULryB48MA4Gv O71Guu2BuFXGPXHZ0bHJxLR5eCer+oi0wYwfpzseHHO49zjGkhrrWf3PmH6alLt6 /DhgJMiUODFAee59Zh//LS/aWTTbL+QMd0XdQ6pEFGvKQ1XuomNtGZC29S9bVf5R m5eiGglBtmuYFQqQUGvzzS0nRAjR9cxu+uDYX4y6aNncnho4R8gGPnE07mCkAwTD UG1XAPnCs5AXW1yUR9o0QRqXjqN1uda9Iwh91f+9mqhYwiKbwFfpt88c+G55hxuo E9etvkpoHYjZnZGKx+lrr1IXypW6qlTLhBkPliafpRLwyPwyLE/NdPwMkc6jrhcT UjuoDXOc/UMxJdpJSuu4cpcgiTsJVuFDoLtqvqtIIm/knpJ9vxzxrVg06DeEN8Jg q9BB87g8NI0bOsClDB3ztRl6uQZH1XQl+cehyKDaqEbq3/PsMYxwh8ukeioO3EHv QlC5Gqs79SEzK/CFNK4czvitNMwuOPeZajotnWFo+xk+kjZaGKcBBeQOPOwWHJ5w EyBS65qqcTtu7vUytHU7s8LQwvJja7ubpOoFkb5skOF1Epfge4pE5WxOFU4LkIbo 5T/y2qK0klyN1L5hlZl1xe1sxkcTUcBcPxWKHpgFXlJPaSGS0ZUakE3eK8J09GcH glCj9bqPOWvx50my6nOf =97Ns -----END PGP SIGNATURE----- --MW5yreqqjyrRcusr-- --===============0729749291== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0729749291==--