From: Cyril H. <su...@li...> - 2013-04-02 09:21:22
|
The branch, master, has been updated via 33b0fe6194f8e7922ac3286bd5bbf6273b4a096b (commit) from e896b67af5888c30de9cd864503690b85e7060ab (commit) - Log ----------------------------------------------------------------- commit 33b0fe6194f8e7922ac3286bd5bbf6273b4a096b Author: Jan Stancek <jst...@re...> Date: Tue Apr 2 11:02:14 2013 +0200 open_posix_testsuite/.../shm_unlink/10-2.c: fix shm_name overrun path_max+1 is out of bounds for shm_name array. Signed-off-by: Jan Stancek <jst...@re...> ----------------------------------------------------------------------- Summary of changes: .../conformance/interfaces/shm_unlink/10-2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-2.c b/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-2.c index bbd4d7c..4426108 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-2.c @@ -41,7 +41,7 @@ int main(void) for (i = 0; i < path_max; i++) shm_name[i] = (i + 1) % COMPONENT_SIZE ? 'a' : '/'; - shm_name[path_max + 1] = 0; + shm_name[path_max] = 0; result = shm_unlink(shm_name); hooks/post-receive -- ltp |