[lxc-devel] [lxc/lxc] d9346e: avoid a NULL pointer dereference in lxc-attach

Christian Brauner noreply at github.com
Thu Sep 3 08:11:59 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: d9346e19eb953c9f71d545019fc260da046e910f
      https://github.com/lxc/lxc/commit/d9346e19eb953c9f71d545019fc260da046e910f
  Author: Scott Parlane <scott.parlane at alliedtelesis.co.nz>
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  avoid a NULL pointer dereference in lxc-attach

Seems to appear when stderr is a terminal and not stdin or stdout.

Signed-off-by: Scott Parlane <scott.parlane at alliedtelesis.co.nz>


  Commit: 3e3f79bdcd9134dcc624d868b13f60712106ed6a
      https://github.com/lxc/lxc/commit/3e3f79bdcd9134dcc624d868b13f60712106ed6a
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

  Changed paths:
    M src/lxc/terminal.c
    M src/lxc/terminal.h

  Log Message:
  -----------
  terminal: introduce lxc_terminal_signal_sigmask_safe_blocked()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: c3941f32de6e82aa5161734e9693b7fdec015056
      https://github.com/lxc/lxc/commit/c3941f32de6e82aa5161734e9693b7fdec015056
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  attach: use lxc_terminal_signal_sigmask_safe_blocked()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 4226b2e5af1fb650fa8caddd8b0965d94a364508
      https://github.com/lxc/lxc/commit/4226b2e5af1fb650fa8caddd8b0965d94a364508
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/terminal.c
    M src/lxc/terminal.h

  Log Message:
  -----------
  Merge pull request #3532 from alliedtelesis/fix_lxc_attach_crash

avoid a NULL pointer dereference in lxc-attach


Compare: https://github.com/lxc/lxc/compare/9cc837ef2cc5...4226b2e5af1f


More information about the lxc-devel mailing list