Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 164088 - local variable used before set
local variable used before set
Product: Fedora
Classification: Fedora
Component: libsepol (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2005-07-24 12:36 EDT by David Binderman
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-08-25 12:47:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Binderman 2005-07-24 12:36:26 EDT
Description of problem:

Hello there,

I just tried to compile Redhat Fedora package
libsepol-1.7.5-1 with the Intel C compiler version 8.1

The compiler said

policydb.c(2431): remark #592: variable "policydb_str" is used before its value
is set

The source code is

                printf("security:  policydb string length %zu does not match
expected length %zu\n", len, strlen(policydb_str));

Clearly broken code. Suggest initialise local variable "policydb_str"
before first use.

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Daniel Walsh 2005-08-25 12:47:45 EDT
Fixed in  libsepol-1.7.20-1

Note You need to log in before you can comment on or make changes to this bug.