Donate Share

wiiuse

Tracker: Bugs

5 Wiiuse-0.7: Stack overflow at io_nix.c:114 - ID: 1820140
Last Update: Comment added ( paralizer )

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.


Johan Euphrosine ( proppy_ ) - 2007-10-25 17:15

5

Closed

Fixed

Michael Laforest

wiimote

None

Public


Comment ( 1 )

Date: 2007-10-25 18:20
Sender: paralizerSourceForge.net DonorProject AdminAccepting Donations


Applied the patch. Thanks.


Attached File ( 1 )

Filename Description Download
bd_addr_str_size.patch fix bdaddr_st size Download

Changes ( 6 )

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_