Bug 155824

Summary: printf problems + local variable used before set
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: libsepolAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: marius.andreiana
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-20 07:44:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2005-04-24 08:53:25 UTC
Description of problem:

I just tried to compile libsepol-1.5.5-1 from Redhat
Fedora Core development tree with the most excellent Intel C
compiler.

The compiler said

1.

genbools.c(199): warning #267: the format string requires additional arguments

The source code is

	__sepol_debug_printf("%s:  Error while re-evaluating conditionals: %s\n",
                                     __FUNCTION__);

Two %s specifiers, only one trailing parameter. Suggest code rework.

2.

hierarchy.c(294): remark #592: variable "eb" is used before its value is set

The source code is

	if (ebitmap_or(eb, &r->types, &rp->types)) {

Suggest initialise local variable "eb" before first use.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2005-04-25 19:38:59 UTC
Fixed in libsepol-1.5.5-2

Comment 2 Marius Andreiana 2005-08-20 07:44:07 UTC
libsepol-1.5.10-1.1 is in FC4