[lxc-devel] [lxc/lxc] 22b67b: caps: fix illegal access to array bound

GitHub noreply at github.com
Tue Sep 4 08:34:48 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 22b67bfa969b2d7f6f3f757e7401b1cc47302725
      https://github.com/lxc/lxc/commit/22b67bfa969b2d7f6f3f757e7401b1cc47302725
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lxc/caps.c

  Log Message:
  -----------
  caps: fix illegal access to array bound

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 91d9cab6dea7bbe93bf3a990b225c8fc8a45c39b
      https://github.com/lxc/lxc/commit/91d9cab6dea7bbe93bf3a990b225c8fc8a45c39b
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M src/lxc/utils.c

  Log Message:
  -----------
  utils: defensive programming

If caller passed the size of array not string length, it is possible to be accessed out of bounds.

Reorder conditions can prevent access invalid index of array.

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: aa599d1f4848639c2b15b670474f8708761d375e
      https://github.com/lxc/lxc/commit/aa599d1f4848639c2b15b670474f8708761d375e
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M src/lxc/nl.c

  Log Message:
  -----------
  nl: remove duplicated define

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: b8bcbe9b06329f70e823f45f5dc247eb4627ea8e
      https://github.com/lxc/lxc/commit/b8bcbe9b06329f70e823f45f5dc247eb4627ea8e
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  syntax error: mismatch brace

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 593010238b7c1276ae3ff5005b8edda431ac8ecf
      https://github.com/lxc/lxc/commit/593010238b7c1276ae3ff5005b8edda431ac8ecf
  Author: Christian Brauner <christian at brauner.io>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M src/lxc/caps.c
    M src/lxc/nl.c
    M src/lxc/seccomp.c
    M src/lxc/utils.c

  Log Message:
  -----------
  Merge pull request #2585 from 2xsec/bugfix

caps: fix illegal access to array bound


Compare: https://github.com/lxc/lxc/compare/d3aba1db2590...593010238b7c
      **NOTE:** This service has 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