mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-11-27 05:20:50 +00:00
8a8a4f8e05
raw_color() uses color_str as an output argument which is assigned to a new allocated memory. Therefore it should fail when color_str is null; or when *color_str is not null in order to avoid a memory leak. Fixes: >>> selinux.selinux_raw_context_to_color('system_u:system_r:inetd_t:s0') Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: [Errno 0] Error Signed-off-by: Petr Lautrbach <plautrba@redhat.com> |
||
---|---|---|
.. | ||
man | ||
share | ||
src | ||
utils | ||
COPYING | ||
Makefile | ||
TODO | ||
VERSION |