bugXnee - Bugs: bug #23965, Uninitialized variable in cnee

 
 

bug #23965: Uninitialized variable in cnee

Submitted by:  Peter Fales <psfales>
Submitted on:  Wed 30 Jul 2008 11:38:46 AM UTC  
 
Category: cneeSeverity: 3 - Normal
Item Group: Minor faultStatus: Fixed
Privacy: PublicAssigned to: Henrik Sandklef <hesa>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 01 Aug 2008 09:52:13 PM UTC, comment #1:

Thanks.

It's fixed. Will commit when I have a better internet connection (CVS diff takes for ever).

/hesa

Henrik Sandklef <hesa>
Project AdministratorIn charge of this item.
Wed 30 Jul 2008 11:38:46 AM UTC, original submission:

If one types "cnee" with no arguments, the value of an un-initialzied pointer is printed. On Linux, the results in garbabe printed on the screen:

$ cnee
Error number: 6
Error: Wrong paramters
Description: You have given invalid input to Xnee
Argument: X)Ê¿

I used this patch:

diff -ur xnee-3.02/cnee/src/parse.c xnee-3.02.new/cnee/src/parse.c
--- xnee-3.02/cnee/src/parse.c 2007-06-28 05:14:17.000000000 -0500
+++ xnee-3.02.new/cnee/src/parse.c 2008-07-29 22:40:01.000000000 -0500
@@ -522,7 +522,7 @@
const char *descr;
const char *err;
const char *sol;
- char *saved_arg;
+ char *saved_arg = "(NONE)";
int entry ;
int args_used;

Peter Fales <psfales>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hesa (Posted a comment)
  • -unavailable- added by psfales (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 01 Nov 2009 10:29:32 PM UTChesaOpen/ClosedOpen=>Closed
    Fri 01 Aug 2008 09:52:12 PM UTChesaStatusNone=>Fixed
      Assigned toNone=>hesa

    Back to the top


    Powered by Savane 3.1-cleanup1