]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
wrapper: fix segfault in cgroup_new_cgroup()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 7 Feb 2023 23:22:50 +0000 (16:22 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 7 Feb 2023 23:22:57 +0000 (16:22 -0700)
commita8973c694a83229ef74e96e44a740dceabff1db3
tree0b4881613374c090d8b4db16ff9c1e3608c1d1c5
parentaa03bb20393ab881ed164cf28fd81b244075defe
wrapper: fix segfault in cgroup_new_cgroup()

Passing NULL in the place of the cgroup name as an argument to
cgroup_new_cgroup() API will segfault, fix by adding a check to validate
cgroup name.

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