Task #132376 - fixed.err
back to task #132376download
Error: COMPILER_WARNING (CWE-704):
selinux-3.10/policycoreutils/secon/secon.c: scope_hint: In function ‘my_getXcon_raw’
selinux-3.10/policycoreutils/secon/secon.c:365:29: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 365 | char *tmp = strchr(ptr, '\n');
# | ^~~~~~
# 363| *con = NULL;
# 364| if (ptr) { /* return *con = NULL, when proc file is empty */
# 365|-> char *tmp = strchr(ptr, '\n');
# 366|
# 367| if (tmp)
Error: COMPILER_WARNING (CWE-704):
selinux-3.10/policycoreutils/secon/secon.c:365:29: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 363| *con = NULL;
# 364| if (ptr) { /* return *con = NULL, when proc file is empty */
# 365|-> char *tmp = strchr(ptr, '\n');
# 366|
# 367| if (tmp)
Error: CPPCHECK_WARNING (CWE-476):
selinux-3.10/sandbox/seunshare.c:315: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fptr
# 313| FILE *fptr;
# 314| fptr = fopen(dst, "w");
# 315|-> fclose(fptr);
# 316| }
# 317| /* mount file */