]> git.proxmox.com Git - mirror_lxc.git/commit
fix potential out of bounds pointer deref
authorDwight Engen <dwight.engen@oracle.com>
Tue, 9 Jul 2013 22:07:26 +0000 (18:07 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 10 Jul 2013 19:07:03 +0000 (14:07 -0500)
commit3327917f4a991a49ba1562b774c63c45139772eb
tree6ef72b465b9fff551126afbd4abc0935bebdc344
parent9313e1e628160ca64f9e7fcec6500056c9a0725f
fix potential out of bounds pointer deref

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 <dwight.engen@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c