]> git.ipfire.org Git - thirdparty/lxc.git/commit
Avoid risk of "too far memory read" 2803/head
authorRachid Koucha <47061324+Rachid-Koucha@users.noreply.github.com>
Sat, 26 Jan 2019 23:10:39 +0000 (00:10 +0100)
committerGitHub <noreply@github.com>
Sat, 26 Jan 2019 23:10:39 +0000 (00:10 +0100)
commit71fc9c046816b2bae564481741658defafc01b62
tree21ae1819181864d731c51394d729ed322a2b6659
parent81f22990c768d3c724f8fe84a3542938502580b4
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@gmail.com>
src/lxc/commands.c