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

Version check in luazlib very strict



Dear Tiago,

as far as I can see, you're the author of "lzlib - Lua 5 interface to
access zlib library functions", which is used by luatex. The file
lzlib.c contains the following code to check the installed zlib
version:

    /* make sure header and library version are consistent */
    const char* version = zlibVersion();
    if (strncmp(version, ZLIB_VERSION, 5))
    {
        lua_pushfstring(L, "zlib library version does not match - header: %s, li
        lua_error(L);
    }

The version check is very strict, it checks even the minor version of
the zlib. This causes a disfunction in luatex in case people upgrade
their zlib version (see http://bugs.debian.org/581818 and friends).

Is there a specific reason why the check is that strict? Do you
think it is possible to untighten it and check only the major version
of the zlib (i.e. turn the 5 above into a 3)?

Many thanks,
  Hilmar
-- 
sigmentation fault


Reply to: