[lxc-devel] [lxc/lxc] 71fc9c: Avoid risk of "too far memory read"

GitHub noreply at github.com
Sat Jan 26 23:43:34 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 71fc9c046816b2bae564481741658defafc01b62
      https://github.com/lxc/lxc/commit/71fc9c046816b2bae564481741658defafc01b62
  Author: Rachid Koucha <47061324+Rachid-Koucha at users.noreply.github.com>
  Date:   2019-01-27 (Sun, 27 Jan 2019)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  Avoid risk of "too far memory read"

As we call "lxc_add_state_client(fd, handler, (lxc_state_t *)req->data)"
which supposes that the last parameter is a table of MAX_STATE
entries when calling memcpy():
memcpy(newclient->states, states, sizeof(newclient->states))

Signed-off-by: Rachid Koucha <rachid.koucha at gmail.com>


  Commit: 60014557dc6c7ebc545266c6dae4529b3749ec30
      https://github.com/lxc/lxc/commit/60014557dc6c7ebc545266c6dae4529b3749ec30
  Author: Christian Brauner <christian at brauner.io>
  Date:   2019-01-27 (Sun, 27 Jan 2019)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  Merge pull request #2803 from Rachid-Koucha/patch-4

Avoid risk of "too far memory read"


Compare: https://github.com/lxc/lxc/compare/f87c3a226be3...60014557dc6c
      **NOTE:** GitHub Services has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      We will provide an alternative path for the email notifications by January 31st, 2019.


More information about the lxc-devel mailing list