Fix: illegal memory access in test_create_ust_channel
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 17 May 2016 01:43:00 +0000 (21:43 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 May 2016 05:59:34 +0000 (01:59 -0400)
commit1b0eb8655d6312877790b92ae3b0cc39f2cf1a13
tree0b902fa747a73f168af017581f356723e43f5a00
parentf8f011fbfe48d1cef9000ccf54d13372f7d9ff1f
Fix: illegal memory access in test_create_ust_channel

Found by Coverity:
CID 1243032 (#1 of 1): Buffer not null terminated (BUFFER_SIZE)1.
buffer_size: Calling strncpy with a source string whose length (8 chars)
is greater than or equal to the size argument (8) will fail to
null-terminate attr.name.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_ust_data.c
This page took 0.025138 seconds and 4 git commands to generate.