When convertir the bluetooth address to string with:
ba2str(&scan_info[i].bdaddr, wm[found_wiimotes]->bdaddr_str);
While bdaddr_str is declare as follow:
WCONST char bdaddr_str[16];
Give that a bluetooth address consist of 12 hexadecimal digit separated by
5 semicolon, the buffer size must be at least 18 for a \0 terminated
string:
WCONST char bdaddr_str[18];
The attached patch fix bdaddr_st size.
Michael Laforest
wiimote
None
Public
|
Date: 2007-10-25 18:20
|
| Filename | Description | Download |
|---|---|---|
| bd_addr_str_size.patch | fix bdaddr_st size | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2007-10-25 18:19 | paralizer |
| resolution_id | None | 2007-10-25 18:19 | paralizer |
| category_id | api | 2007-10-25 18:19 | paralizer |
| assigned_to | nobody | 2007-10-25 18:19 | paralizer |
| close_date | - | 2007-10-25 18:19 | paralizer |
| File Added | 251308: bd_addr_str_size.patch | 2007-10-25 17:15 | proppy_ |