c0528d
diff -up texlive-2012/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/encoding.c.me texlive-2012/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/encoding.c
c0528d
--- texlive-2012/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/encoding.c.me	2018-07-22 10:49:42.862075024 +0200
c0528d
+++ texlive-2012/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/encoding.c	2018-07-22 10:52:00.667236454 +0200
c0528d
@@ -541,6 +541,8 @@ return( NULL );
c0528d
 	base = 256;
c0528d
     else if ( enc->char_cnt<=0x10000 )
c0528d
 	base = 0x10000;
c0528d
+    if (base==0)
c0528d
+return( NULL );
c0528d
     encoded = galloc(base*sizeof(int));
c0528d
     memset(encoded,-1,base*sizeof(int));
c0528d
     unencoded = galloc(sf->glyphcnt*sizeof(int));