Re: [lxc-devel] [PATCH] fix potential out of bounds pointer deref

2013-07-10 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > I noticed that if find_first_wholeword() is called with word at the very > beginning of p, we will deref *(p - 1) to see if it is a word boundary. > Fix by considering p = p0 to be a word boundary. > > Signed-off-by: Dwight Engen Acked-by: Serge

[lxc-devel] [PATCH] fix potential out of bounds pointer deref

2013-07-09 Thread Dwight Engen
I noticed that if find_first_wholeword() is called with word at the very beginning of p, we will deref *(p - 1) to see if it is a word boundary. Fix by considering p = p0 to be a word boundary. Signed-off-by: Dwight Engen --- src/lxc/lxccontainer.c | 7 +-- 1 file changed, 5 insertions(+), 2