libsepol: fix direct leak in user_extra_to_cil()
Stephen Smalley
maintainerPATCH 1/1 libsepol: fix direct leak in user_extra_to_cil()
Free all the strings on the exit path.
Reported-by oss-fuzz (issue 539257834)
Signed-off-by Stephen Smalley <[email protected]>
--- libsepol/src/module_to_cil.c | 2 ++ 1 file changed, 2 insertions(+)
libsepol/src/module_to_cil.c +2 -0
@@ -3680,6 +3680,8 @@ exit:free (line);free (user);free (prefix); +free (user_str); +free (prefix_str);return rc; }
Signature · 1 line
2.55.0
Quoted 5 lines · Stephen Smalley
Free all the strings on the exit path.
Reported-by oss-fuzz (issue 539257834)Signed-off-by Stephen Smalley <[email protected]>
Acked-by James Carter <[email protected]>
Quoted 20 lines
--- libsepol/src/module_to_cil.c | 2 ++ 1 file changed, 2 insertions(+)libsepol/src/module_to_cil.c +2
-1@@ -3680,6 +3680,8 @@ exit:free (line);free (user);free (prefix); +free (user_str); +free (prefix_str);return rc; } --2.55.0
Stephen Smalley
maintainerQuoted 10 lines · James Carter
Quoted 5 lines · Stephen Smalley
Free all the strings on the exit path.
Reported-by oss-fuzz (issue 539257834)Signed-off-by Stephen Smalley <[email protected]>Acked-by James Carter <[email protected]>
Merged.