[lxc-devel] [lxc/lxc] eec49e: check for NULL pointers before calling setenv()

GitHub noreply at github.com
Thu Aug 27 20:22:08 UTC 2015


  Branch: refs/heads/stable-1.1
  Home:   https://github.com/lxc/lxc
  Commit: eec49e00f466c4ad9e61ca0ff9f790242c6805fe
      https://github.com/lxc/lxc/commit/eec49e00f466c4ad9e61ca0ff9f790242c6805fe
  Author: Robert Schiele <rschiele at gmail.com>
  Date:   2015-08-21 (Fri, 21 Aug 2015)

  Changed paths:
    M src/lxc/lxccontainer.c
    M src/lxc/start.c

  Log Message:
  -----------
  check for NULL pointers before calling setenv()

Latest glibc release actually honours calling setenv with a NULL
pointer by causing SIGSEGV but checking pointers before submitting
to any system function is a good idea anyway.

Signed-off-by: Robert Schiele <rschiele at gmail.com>


  Commit: 390d8952bdcc6d4d156bcce47de385f8e07944d0
      https://github.com/lxc/lxc/commit/390d8952bdcc6d4d156bcce47de385f8e07944d0
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2015-08-27 (Thu, 27 Aug 2015)

  Changed paths:
    M src/lxc/lxccontainer.c
    M src/lxc/start.c

  Log Message:
  -----------
  Merge pull request #639 from schiele/stable-1.1

check for NULL pointers before calling setenv()


Compare: https://github.com/lxc/lxc/compare/b6e1320d6f3e...390d8952bdcc


More information about the lxc-devel mailing list