]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
wrapper.c: Fix potentially unterminated strings 2/head
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 7 Jan 2020 19:31:45 +0000 (12:31 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 8 Jan 2020 15:01:39 +0000 (08:01 -0700)
commitf75193b4b717fe94b22186091b038313691db5b8
tree7653cf1c60f1cad80965dc77c2b7592665997b03
parentcdd4b115b10c3492df0a27880e4d8d41d167fe82
wrapper.c: Fix potentially unterminated strings

This commit fixes two adjacent strncpys that could result
in unterminated strings:

CID 1412144 (#2 of 2): Buffer not null terminated
(BUFFER_SIZE_WARNING)13. buffer_size_warning: Calling strncpy with a
maximum size argument of 100 bytes on destination array
cntl_value->value of size 100 bytes might leave the destination string
unterminated.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/wrapper.c