[lxc-devel] [lxc/lxc] ee3e84: confile_utils: fix overlapping strncpy

GitHub noreply at github.com
Wed Nov 22 11:33:59 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: ee3e84df78424d26fc6c90862fbe0fa92a686b0d
      https://github.com/lxc/lxc/commit/ee3e84df78424d26fc6c90862fbe0fa92a686b0d
  Author: Felix Abecassis <fabecassis at nvidia.com>
  Date:   2017-11-21 (Tue, 21 Nov 2017)

  Changed paths:
    M src/lxc/confile_utils.c

  Log Message:
  -----------
  confile_utils: fix overlapping strncpy

In the case of "lxc.net.0.type", the pointers passed to strncpy were
only 2 elements apart, resulting in undefined behavior.

Signed-off-by: Felix Abecassis <fabecassis at nvidia.com>


  Commit: 27b54094d0fa268bffda0b6840b0b1e30ca3d950
      https://github.com/lxc/lxc/commit/27b54094d0fa268bffda0b6840b0b1e30ca3d950
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-22 (Wed, 22 Nov 2017)

  Changed paths:
    M src/lxc/confile_utils.c

  Log Message:
  -----------
  Merge pull request #1935 from flx42/confile-overlapping-strncpy

confile_utils: fix overlapping strncpy


Compare: https://github.com/lxc/lxc/compare/ba715de0b5c3...27b54094d0fa


More information about the lxc-devel mailing list