diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-31 09:30:47 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-31 09:30:47 +0000 |
commit | aa33a712112ba616d83b95ead228b640dc6df765 (patch) | |
tree | b79d10d2d1680383a2b6c8a753e7afee235096a1 /Build/source/texk/web2c/luatexdir/lua | |
parent | 1fc0936f4a8aeb63273da0251cc2c0b91412c7ec (diff) |
luaTeX: Bugfix: Avoid potential segmentation fault
git-svn-id: svn://tug.org/texlive/trunk@38253 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lepdflib.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc b/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc index 079bfd986f8..cb1795bdf38 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc +++ b/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc @@ -1826,7 +1826,7 @@ static int m_Object_dictAdd(lua_State * L) pdfdoc_changed_error(L); if (!((Object *) uin->d)->isDict()) luaL_error(L, "Object is not a Dict"); - ((Object *) uin->d)->dictAdd((char *) s, (Object *) uobj->d); + ((Object *) uin->d)->dictAdd(copyString(s), (Object *) uobj->d); return 0; } |