Modify

Opened 11 years ago

Closed 11 years ago

#241 closed defect (fixed)

PCITOOL: possible segmentation fault within ReadRegister(cli.c)

Reported by: Nicolas Zilio Owned by:
Priority: minor Milestone:
Component: pcilib Version:
Keywords: Cc:

Description

in ReadRegister? function, we have :
"regid= pcilib_find_register(handle,bank,reg)

bank_id=pcilib_find_register_bank_by_addr(handle, model_info->re gisters[regid].bank); "

when regid=-1, ie when a wrong register is given, a segmentation appears within pcilib_find_register_bank_by_addr.

adding a control loop solve the problem

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by Suren A. Chilingaryan

Resolution: fixed
Status: newclosed

Fixed in r259

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.