[Xorp-hackers] [greearb/xorp.ct] 945594: Add some null pointer checks to avoid segfaults.

GitHub noreply at github.com
Thu Mar 2 13:07:22 PST 2017


  Branch: refs/heads/master
  Home:   https://github.com/greearb/xorp.ct
  Commit: 945594677c0f12ce3cbf8bb2b59b36a454329ee5
      https://github.com/greearb/xorp.ct/commit/945594677c0f12ce3cbf8bb2b59b36a454329ee5
  Author: Ben Greear <greearb at candelatech.com>
  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 <ddiaz at cenditel.gob.ve>

I added an extra check as well.
Signed-off-by: Ben Greear <greearb at candelatech.com>




More information about the Xorp-hackers mailing list