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)
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ufo/chrome/site/your_project_logo.png)
Fixed in r259