lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190324101003.GA17131@hari-Inspiron-1545>
Date:   Sun, 24 Mar 2019 15:40:03 +0530
From:   Hariprasad Kelam <hariprasad.kelam@...il.com>
To:     paul@...l-moore.com, sds@...ho.nsa.gov, eparis@...isplace.org,
        omosnace@...hat.com, keescook@...omium.org, rgb@...hat.com,
        jannh@...gle.com, adobriyan@...il.com, sgrover@...eaurora.org,
        peter.enderborg@...y.com, kent.overstreet@...il.com,
        selinux@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] selinux: fixed parse warning Using plain integer as NULL
 pointer

Changed  0 --> NULL to avoid sparse warning

Sparse warning below:

sudo make C=2 CF=-D__CHECK_ENDIAN__ M=security

 CHECK   security/selinux/ss/services.c
security/selinux/ss/services.c:1323:32: warning: Using plain integer as
NULL pointer

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@...il.com>
---
 security/selinux/ss/services.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index ec62918..30cea59 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -1320,7 +1320,7 @@ static int security_sid_to_context_core(struct selinux_state *state,
 	}
 	if (only_invalid && !context->len) {
 		scontext = NULL;
-		scontext_len = 0;
+		scontext_len = NULL;
 		rc = 0;
 	} else {
 		rc = context_struct_to_string(policydb, context, scontext,
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ