[lxc-devel] [lxc/lxc] c80c9a: cgfsng: fix cgroup attach cgroup creation

Stéphane Graber noreply at github.com
Fri Aug 21 16:10:48 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: c80c9a70bcad9da9fe56f23ed971d74e4df19a95
      https://github.com/lxc/lxc/commit/c80c9a70bcad9da9fe56f23ed971d74e4df19a95
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgfsng: fix cgroup attach cgroup creation

cgroups/cgfsng.c: In function ‘cgroup_attach_leaf.constprop’:
cgroups/cgfsng.c:2221:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
 2221 |   *slash = '\0';
      |   ~~~~~~~^~~~~~
cgroups/cgfsng.c:2213:8: note: at offset -13 to object ‘attach_cgroup’ with size 23 declared here
 2213 |   char attach_cgroup[STRLITERALLEN(".lxc-1000/cgroup.procs") + 1];
      |        ^~~~~~~~~~~~~
cgroups/cgfsng.c:2229:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
 2229 |   *slash = '/';
      |   ~~~~~~~^~~~~
cgroups/cgfsng.c:2213:8: note: at offset -13 to object ‘attach_cgroup’ with size 23 declared here
 2213 |   char attach_cgroup[STRLITERALLEN(".lxc-1000/cgroup.procs") + 1];
      |        ^~~~~~~~~~~~~
cgroups/cgfsng.c:2229:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
 2229 |   *slash = '/';
      |   ~~~~~~~^~~~~
cgroups/cgfsng.c:2213:8: note: at offset -13 to object ‘attach_cgroup’ with size 23 declared here
 2213 |   char attach_cgroup[STRLITERALLEN(".lxc-1000/cgroup.procs") + 1];
      |        ^~~~~~~~~~~~~

Link: https://launchpadlibrarian.net/494354168/buildlog_ubuntu-groovy-armhf.lxc_1%3A4.0.4-0ubuntu1_BUILDING.txt.gz
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 256928ac6096ada0556616137bd2498858a1eaac
      https://github.com/lxc/lxc/commit/256928ac6096ada0556616137bd2498858a1eaac
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  Merge pull request #3526 from brauner/2020-08-21/fixes

cgfsng: fix cgroup attach cgroup creation


Compare: https://github.com/lxc/lxc/compare/9d3b7c97f044...256928ac6096


More information about the lxc-devel mailing list