#982285 libcgroup1: invalid memory access in cgroup_strerror

Package:
libcgroup1
Source:
libcgroup
Description:
control and monitor control groups (library)
Submitter:
Alexander Galanin
Date:
2021-02-08 10:12:04 UTC
Severity:
important
Tags:
#982285#3
Date:
2021-02-08 10:02:20 UTC
From:
To:
cgroup_strerror_codes in src/api.c does not match to ECG* error enum
defined in include/libcgroup/error.h

This may lead to returning invalid error message from cgroup_strerror()
or accessing out of archive boundary when cgroup_strerror is called with
code=ECGNONEMPTY.

I have added one more error message to fill the gap between ECGMOUNTFAIL
(50021 - Cgroup mounting failed) and ECGEOF (50023 - End of File or
iterator) messages.

Upstream patch: https://sourceforge.net/p/libcg/patches/7/