#1 sub info returns bad free mem

closed
Ben Slote
None
5
2006-10-03
2006-09-29
Nether
No

The bluetooth address is 7 characters long (null
terminator???), but it unpacks only 6.

my ($nxt_name, $bt0, $bt1, $bt2, $bt3, $bt4, $bt5,
$bt_signal, $free_user_flash);
210 ($reply, $command, $status, $nxt_name, $bt0,
$bt1, $bt2, $bt3, $bt4, $bt5,
211 $bt_signal, $free_user_flash) =
unpack("C3Z15C6VV", $inbuf);

my ($nxt_name, $bt0, $bt1, $bt2, $bt3, $bt4, $bt5,
$bt6, $bt_signal, $free_user_flash);
($reply, $command, $status, $nxt_name, $bt0, $bt1,
$bt2, $bt3, $bt4, $bt5, $bt6,
$bt_signal, $free_user_flash) = unpack("C3Z15C7VV",
$inbuf);

Discussion

  • Ben Slote
    Ben Slote
    2006-09-30

    • assigned_to: nobody --> iswm
     
  • Ben Slote
    Ben Slote
    2006-09-30

    Logged In: YES
    user_id=1017427

    Looking into this. Thanks.

     
  • Ben Slote
    Ben Slote
    2006-10-03

    Logged In: YES
    user_id=1017427

    Fixed in svn commit 4.

     
  • Ben Slote
    Ben Slote
    2006-10-03

    • status: open --> closed