Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 136761 - 5 * local variable used before set
5 * local variable used before set
Product: Fedora
Classification: Fedora
Component: gnutls (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ivana Varekova
Depends On:
  Show dependency treegraph
Reported: 2004-10-22 04:11 EDT by David Binderman
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-12-15 18:04:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Add some %doc (788 bytes, patch)
2005-01-29 19:26 EST, Marcin Garski
no flags Details | Diff

  None (edit)
Description David Binderman 2004-10-22 04:11:22 EDT
Description of problem:

I just tried to compile package gnutls-1.0.20-3 from package
Redhat Fedora Core 3 Test 3.

The compiler said


gnutls_x509.c(1232): remark #592: variable "ret" is used before its
value is set

The source code is

        return ret;

Suggest init ret before first use.


x509/common.c(619): remark #592: variable "len" is used before its
value is set

The source code is

        result = asn1_write_value(c2, name, str_time, len);

Suggest init len before first use.


gnutls_openssl.c(318): remark #592: variable "x_priority" is used
before its value is set

The source code is

             i < GNUTLS_MAX_ALGORITHM_NUM && x_priority[i] != 0;

Suggest store values in the x_priority array before reading them.


gnutls_openssl.c(372): remark #592: variable "x_priority" is used
before its value is set



certtool.c(1912): remark #592: variable "output" is used before its
value is set

The source code is

        return output;

Suggest init output before first use.

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 2 Marcin Garski 2004-12-15 18:04:05 EST
Thank you for the bug report. However this bug should be reported
upstream (and fixed by GnuTLS developers) so everyone could use fixed
version (not just Fedora Core users).

I've inform GnuTLS developers about this bugs, and they are fixed in

Ivana please consider updating rpm in rawhide to fixed version (of
course after fixed version will be released).
Comment 3 Ivana Varekova 2004-12-16 07:40:27 EST
Thank for the bug report. 
Thank Marcin Garski for his help.
I will update GnuTLS when fixed version will be released.
Ivana Varekova
Comment 4 Marcin Garski 2005-01-29 19:25:49 EST
Fixed version (1.0.24) has been released, also new 1.2.0 (new stable
branch) has been released. I attach a patch that add some %doc to spec
file, please committ it.

Please note that '%description' and '%description devel' should be
changed becasue now they include this text "Someone needs to fix this
description." :)
Comment 5 Marcin Garski 2005-01-29 19:26:36 EST
Created attachment 110403 [details]
Add some %doc

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