selinux/libsepol
Vit Mojzis 1f080ffd7a libsepol/sepol_compute_sid: Do not destroy uninitialized context
Avoid context_destroy() on "newcontext" before context_init() is called.

Fixes:
  libsepol-3.6/src/services.c:1335: var_decl: Declaring variable "newcontext" without initializer.
  libsepol-3.6/src/services.c:1462: uninit_use_in_call: Using uninitialized value "newcontext.range.level[0].cat.node" when calling "context_destroy".
  \# 1460|   	rc = sepol_sidtab_context_to_sid(sidtab, &newcontext, out_sid);
  \# 1461|         out:
  \# 1462|-> 	context_destroy(&newcontext);
  \# 1463|   	return rc;
  \# 1464|   }

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
Reviewed-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
2024-07-30 13:18:08 -04:00
..
cil libsepol/cil: Fix detected RESOURCE_LEAK (CWE-772) 2024-05-01 16:50:31 -04:00
fuzz libsepol/fuzz: handle empty and non kernel policies 2023-12-06 13:32:50 -05:00
include libsepol: rework permission enabled check 2024-06-14 09:10:49 -04:00
man Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
src libsepol/sepol_compute_sid: Do not destroy uninitialized context 2024-07-30 13:18:08 -04:00
tests libsepol/tests: Update the order of neverallow test results 2023-11-21 08:55:45 -05:00
utils
.gitignore
LICENSE
Makefile
VERSION Release 3.7 2024-06-26 17:30:41 +02:00