[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#482311: luatex: check_isnode() implicitly converted to pointer



Package: luatex
Version: 0.25.2-1
Severity: important
Tags: patch
Usertags: implicit-pointer-conversion

Our automated buildd log filter[1] detected a problem that is likely to
cause your package to segfault on architectures where the size of a
pointer is greater than the size of an integer, such as ia64 and amd64.

  Function `check_isnode' implicitly converted to pointer at ../../../../src/texk/web2c/luatexdir/lua/llanglib.c:168

This is often due to a missing function prototype definition.
For more information, see [2].

[1] http://people.debian.org/~dannf/check-implicit-pointer-functions
[2] http://wiki.debian.org/ImplicitPointerConversions

-- 
dann frazier

diff -urpN luatex-0.25.2.orig/src/texk/web2c/luatexdir/luatex-api.h luatex-0.25.2/src/texk/web2c/luatexdir/luatex-api.h
--- luatex-0.25.2.orig/src/texk/web2c/luatexdir/luatex-api.h	2008-04-10 08:37:41.000000000 -0600
+++ luatex-0.25.2/src/texk/web2c/luatexdir/luatex-api.h	2008-05-21 12:51:06.000000000 -0600
@@ -3,6 +3,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <ptexlib.h>
 #include <../lua51/lua.h>
 #include <../lua51/lauxlib.h>
 #include <../lua51/lualib.h>
@@ -73,6 +74,7 @@ extern void  tokenlist_to_lua(lua_State 
 extern void  tokenlist_to_luastring(lua_State *L, int p) ;
 extern int   tokenlist_from_lua(lua_State *L);
 
+extern halfword *check_isnode (lua_State *L, int ud);
 extern void  lua_nodelib_push (lua_State *L) ;
 extern int   luaopen_node (lua_State *L);
 extern void  nodelist_to_lua (lua_State *L, int n) ;

Reply to: