Your message dated Wed, 14 Oct 2015 05:18:49 +0000 with message-id <[email protected]> and subject line Bug#758580: fixed in luabind 0.9.1+dfsg-10 has caused the Debian Bug report #758580, regarding luabind: Possible dereference of null pointer in adopt_policy.hpp to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 758580: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758580 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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
--- End Message ---
--- Begin Message ---Source: luabind Source-Version: 0.9.1+dfsg-10 We believe that the bug you reported is fixed in the latest version of luabind, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Roberto C. Sanchez <[email protected]> (supplier of updated luabind package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Wed, 14 Oct 2015 00:22:44 -0400 Source: luabind Binary: libluabind0.9.1v5 libluabind-dbg libluabind-dev libluabind-doc libluabind-examples Architecture: source amd64 all Version: 0.9.1+dfsg-10 Distribution: unstable Urgency: low Maintainer: Roberto C. Sanchez <[email protected]> Changed-By: Roberto C. Sanchez <[email protected]> Description: libluabind-dbg - luabind c++ binding for lua: unstripped binaries libluabind-dev - luabind c++ binding for lua: static library and headers libluabind-doc - luabind c++ binding for lua: documentation files libluabind-examples - luabind c++ binding for lua: example files libluabind0.9.1v5 - luabind c++ binding for lua: runtime library Closes: 758580 799661 Changes: luabind (0.9.1+dfsg-10) unstable; urgency=low . * Refer to Lua 5.2 in pkg-config file (Closes: #799661) * Update to Standards-Version 3.9.6 (no changes) * Fix possible null pointer dereference in luabind::adopt; thanks to Andreas Grob for the patch (Closes: #758580) Checksums-Sha1: 9a30934f12789de04af6950570d6b5a6029f4681 2232 luabind_0.9.1+dfsg-10.dsc 7aa8acc6450120c17aff79f183790a4de05a027f 15248 luabind_0.9.1+dfsg-10.debian.tar.xz d9fb3f2a3f408045405af8954c737ad9f5f2bbf3 723314 libluabind-dbg_0.9.1+dfsg-10_amd64.deb d3588ee80168d5ed73035cd6a6515eea4dcf648a 95476 libluabind-dev_0.9.1+dfsg-10_amd64.deb 00a5e57a82eb767d116d79beba7bf5267eb06ab2 85314 libluabind-doc_0.9.1+dfsg-10_all.deb c2eb45b14c43f6de4d89c7b0a93b5fcfb234bd17 16818 libluabind-examples_0.9.1+dfsg-10_all.deb 95952fbe81f1dad4fc2df8d0c6885c137bb60ae0 44680 libluabind0.9.1v5_0.9.1+dfsg-10_amd64.deb Checksums-Sha256: 688c2737f0baa9c8425985b76ca16ec9bc418efd1317598adef98faf0eccfcbb 2232 luabind_0.9.1+dfsg-10.dsc 1c204f00c5ef393bad66da1735d890de72dc41be7988d896babca8c403799930 15248 luabind_0.9.1+dfsg-10.debian.tar.xz 0622626693843df885d9afc5b88246b0280ce03a46cf63f377ba18adf5ac3597 723314 libluabind-dbg_0.9.1+dfsg-10_amd64.deb 5d62973368e04bf533e805bdcc9e402f540f4d4b4ffe59edd60d0d8febfd1a8b 95476 libluabind-dev_0.9.1+dfsg-10_amd64.deb 0162cdbb493ff9012311b93a8d95cb543202515fde6fbeef3ec37f27a06f9ec7 85314 libluabind-doc_0.9.1+dfsg-10_all.deb a045d5809a04a9b50bba1fd194d245ccd70931937619d7d694255b4222f85cf0 16818 libluabind-examples_0.9.1+dfsg-10_all.deb 85a086d0d3adc918f50d7c631edd178d37e236030bca4ffb6edca28777b35736 44680 libluabind0.9.1v5_0.9.1+dfsg-10_amd64.deb Files: 2c9be7ee96517ecb4e6280a3a5da91ff 2232 libs optional luabind_0.9.1+dfsg-10.dsc f36db73ebad8ebb2c9f278da3d512c12 15248 libs optional luabind_0.9.1+dfsg-10.debian.tar.xz 9d0dbee40da50a2b528715e7cc928ffd 723314 debug extra libluabind-dbg_0.9.1+dfsg-10_amd64.deb fbfbdcad6f312c109de95b557fdd0fd6 95476 libdevel optional libluabind-dev_0.9.1+dfsg-10_amd64.deb b70f1c64218ed590d34d5c3cb9ec04ac 85314 doc optional libluabind-doc_0.9.1+dfsg-10_all.deb 07c6bf047d6f6d4b4c4648337b1f77cb 16818 libdevel optional libluabind-examples_0.9.1+dfsg-10_all.deb 95cbaaeec7acd1f324cff07a26bad87b 44680 libs optional libluabind0.9.1v5_0.9.1+dfsg-10_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJWHeJvAAoJECzXeF7dp7IP7+IP/jP8Dfuzqy4BJImbKywUDBAN q5APS3oPUIVn/LrOI1fLhIJHbkh0GLd+Vj9ZO9xrp0WsUutOhTPvw+cN/QgsBSZH kJG0+GLd7N7N79poFLv8s+MrJSKPVH2U6PJiKJ0gXHEFb3E3bsJZQWF5NkYNEwOS 8kYl6cq9tr4/CkuN8lZyw1fvG4KNvluH/7eIuYUOHT7m5aXvO9hZRyFpaoWjR/TY KRINYhr4PjVZiIlrksBJNbbwUIFLMMqOyLJ3BkUoZubKf99AyOfNQs+ZAslffaSM 8s4m/UY1lYSaZLdsoIwwW160P8FtYCU8MMfWhHmK5Zc3LVZLuPR/V6Tw/wVDNIlP 6PZSAgUDA2qsF05L2/tquoQ2IEvJtP6cFNacvfNvAUcYg6cc9Cgl5Rki5RPpxmsM etySxPMoT+AU7KMkChMBhxa4b62m12SGYmkB8Jax+TyKV7XeWP6tFI11PmiTuNud WXFUO0yWCWHHls9XqXasfKpOYKF0X5HlX6oSZK0Hfu+n7q7cyRIqvzxffHHmrGya f45bRs4G9Fzn97tjf5lX4jd5XqRkGObE5BQja82dFMA2uhadl6hHDQeHqYXtht2y 6woyXy3LBzb30Yrp5+G6ITZwh0AW3e5fFoEWT6o7CSYXuelgJLz/Ji61lPA8JVxJ qylTGviubAggMrAvRITB =BxWV -----END PGP SIGNATURE-----
--- End Message ---

