Package: libluabind0.9.1 Source: luabind Version: 0.9.1+dfsg-9 Severity: normal File: luabind
Dear Maintainer, luabind::adopt crashes the client application when a null pointer passes through that policy. The following diff fixes the problem: diff --git a/luabind/adopt_policy.hpp b/luabind/adopt_policy.hpp index 5e81b94..59558e1 100644 --- a/luabind/adopt_policy.hpp +++ b/luabind/adopt_policy.hpp @@ -65,7 +65,11 @@ namespace luabind { namespace detail object_rep* obj = static_cast<object_rep*>( lua_touserdata(L, index)); - obj->release(); + + if (obj) + { + obj->release(); + } adjust_backref_ownership(ptr, boost::is_polymorphic<T>()); -- System Information: Debian Release: 7.6 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages libluabind0.9.1 depends on: ii libc6 2.13-38+deb7u3 ii libgcc1 1:4.7.2-5 ii liblua5.2-0 5.2.1-3 ii libstdc++6 4.7.2-5 libluabind0.9.1 recommends no packages. libluabind0.9.1 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org