bugXnee - Bugs: bug #17227, Problem in xnee_key2string

 
 

bug #17227: Problem in xnee_key2string

Submitted by:  John Willing <jwilling>
Submitted on:  Fri 28 Jul 2006 07:23:30 PM UTC  
 
Category: libxneeSeverity: 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.

 

Mon 20 Nov 2006 10:05:58 AM UTC, comment #1:

OK in coming Xnee (currently in CVS)

Henrik Sandklef <hesa>
Project AdministratorIn charge of this item.
Fri 28 Jul 2006 07:23:30 PM UTC, original submission:

When trying to launch cnee with:

cnee --record -devra 16,17,21 -v

I received a SIGSEGV. Using a debugger, I found a problem in xnee_key2string. "id" is assigned a -1 from the call to xnee_key2id which inturns causes the xnee_verbose call to fail with options[id].

I would suggest moving the xnee_verbose call until after the IF call:

const char *
xnee_key2string(xnee_data *xd,
xnee_option_t *options,
int key)
{
int id ;

id = xnee_key2id(xd, options, key);

if ( id == XNEE_OPTION_NOT_FOUND )
{
return XNEE_EMPTY_STRING;
}

xnee_verbose((xd, "Looking for %d ===> %d '%s'\n",
key, id, options[id].option));

return options[id].option;
}

John Willing <jwilling>

 

(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

 

CC list is empty

 

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
Mon 20 Nov 2006 10:05:58 AM UTChesaStatusNone=>Fixed
  Assigned toNone=>hesa
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1