Bug 710464

Summary: Possible use of uninitialized values
Product: [Fedora] Fedora Reporter: Petr Šabata <psabata>
Component: ncAssignee: Petr Šabata <psabata>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: psabata, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nc-1.100-3.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-03 14:01:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Šabata 2011-06-03 13:25:05 UTC
Description of problem:
nc might use uninitialized values since 1.84-23 when the '-r' flag is used and the 'comma feature' isn't used.

Version-Release number of selected component (if applicable):
nc-1.84-23+

How reproducible:
Always.

Steps to Reproduce:
1. nc localhost 22-25 -r
  
Actual results:
nc uses uninitialized 'hi' and 'lo' variables.

Expected results:
The above shouldn't happen.

Additional info:
This is Fedora specific.

Comment 1 Petr Šabata 2011-06-03 14:01:29 UTC
Correction: This happens when a range isn't used.