From noreply at github.com Thu Mar 2 13:07:22 2017 From: noreply at github.com (GitHub) Date: Thu, 02 Mar 2017 13:07:22 -0800 Subject: [Xorp-hackers] [greearb/xorp.ct] 945594: Add some null pointer checks to avoid segfaults. Message-ID: <58b8898a6a06c_31a63fcbc6a5fc2c8148b@hookshot-fe6-cp1-prd.iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/greearb/xorp.ct Commit: 945594677c0f12ce3cbf8bb2b59b36a454329ee5 https://github.com/greearb/xorp.ct/commit/945594677c0f12ce3cbf8bb2b59b36a454329ee5 Author: Ben Greear Date: 2017-03-02 (Thu, 02 Mar 2017) Changed paths: M xorp/libxorp/trie.hh Log Message: ----------- Add some null pointer checks to avoid segfaults. When compiled using gcc 6, the initialization process generates segfaults at some null pointer dereferences. This problem was probably exposed by the behaviour of -fdelete-null-pointer-checks in gcc 6. Original patch by: Dhionel D?az I added an extra check as well. Signed-off-by: Ben Greear