commit | 658010cfa91f01e37f91136fa51bbccbd09c455a | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue Jan 01 15:46:43 2013 -0800 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue Jan 01 16:38:41 2013 -0800 |
tree | 42a581bcd15b089625b06f2f316a55ddf0b29098 | |
parent | 853fe09566d18473045dc0c8aea5ae0f83d06131 [diff] |
load_ploop_lib(): prevent buffer overflow vzctl can be compiled with an old version of ploop library headers, so size of struct ploop_functions might be smaller than the one of the currently installed library, causing a buffer overflow in ploop_resolve_functions() leading to all sorts of funny effects. While it's indeed an issue with ploop_resolve_functions() design, let's workaround it here by providing a safety bag. Signed-off-by: Kir Kolyshkin <kir@openvz.org>