]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/criu.c
fix possible buffer overflow
authorNiklas Eiling <niklas.eiling@rwth-aachen.de>
Wed, 30 Mar 2016 18:10:21 +0000 (20:10 +0200)
committerNiklas Eiling <niklas.eiling@rwth-aachen.de>
Wed, 30 Mar 2016 18:10:21 +0000 (20:10 +0200)
commita17fa3c081a2a2e2ec692ed8decaf54470d05dce
tree850671be6323702db375b1b75af58416b26f94ee
parentcb82ed392899bbd9f8642c313bd6db45a71efc0a
fix possible buffer overflow
strncat only returns its first argument and not the end of the written string.
Thus "buf-pos" is always 0 and consquently no range check is performed.

Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
src/lxc/criu.c