[lxc-devel] [lxc/lxc] d3bdf1: confile: satisfy gcc-8

GitHub noreply at github.com
Thu May 10 22:38:56 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: d3bdf12cf00e93e3b1df354dd4cc46356baedf24
      https://github.com/lxc/lxc/commit/d3bdf12cf00e93e3b1df354dd4cc46356baedf24
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-05-11 (Fri, 11 May 2018)

  Changed paths:
    M src/lxc/confile_utils.c

  Log Message:
  -----------
  confile: satisfy gcc-8

Apparently -Werror=stringop-overflow will trigger an error here even though
this is completely valid since we now that we're definitely copying a \0-byte.
Work around this gcc-8 quirk by using memcpy(). This shouldn't trigger the
warning.

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


  Commit: 3d36e44ad3f6434949563f851de4bf574d3c57d4
      https://github.com/lxc/lxc/commit/3d36e44ad3f6434949563f851de4bf574d3c57d4
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2018-05-10 (Thu, 10 May 2018)

  Changed paths:
    M src/lxc/confile_utils.c

  Log Message:
  -----------
  Merge pull request #2313 from brauner/2018-05-11/compiler_fixes

confile: satisfy gcc-8


Compare: https://github.com/lxc/lxc/compare/d975008115ba...3d36e44ad3f6
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the lxc-devel mailing list