btscanner crashes on try using "brute force scan"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
btscanner (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: btscanner
Always that using the btscanner and try the shortcut "b" (brute force scan) i receive the crash message.
------------- init message
*** buffer overflow detected ***: /usr/bin/btscanner terminated
======= Backtrace: =========
/lib/libc.
/lib/libc.
/usr/bin/
/usr/bin/
/usr/bin/
/lib/libc.
/usr/bin/
======= Memory map: ========
00400000-0040f000 r-xp 00000000 08:02 444669 /usr/bin/btscanner
0060e000-0060f000 r--p 0000e000 08:02 444669 /usr/bin/btscanner
0060f000-00610000 rw-p 0000f000 08:02 444669 /usr/bin/btscanner
00610000-00611000 rw-p 00610000 00:00 0
0228c000-0238e000 rw-p 0228c000 00:00 0 [heap]
7f237b9fa000-
7f237ba10000-
7f237bc10000-
7f237bc11000-
7f237bc12000-
7f237bc96000-
7f237be95000-
7f237be96000-
7f237be97000-
7f237beae000-
7f237c0ad000-
7f237c0af000-
7f237c0b1000-
7f237c2b1000-
7f237c2b2000-
7f237c2b3000-
7f237c41c000-
7f237c61b000-
7f237c61f000-
7f237c620000-
7f237c625000-
7f237c65c000-
7f237c85b000-
7f237c860000-
7f237c867000-
7f237ca66000-
7f237ca67000-
7f237ca74000-
7f237cc74000-
7f237cc75000-
7f237cc8e000-
7f237ce8d000-
7f237ce8e000-
7f237ce90000-
7f237cea7000-
------------- end message
[jpereira@jiraya btscanner-2.1]$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
[jpereira@jiraya btscanner-2.1]$ apt-cache show btscanner
Package: btscanner
Priority: optional
Section: universe/net
Installed-Size: 432
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-
Architecture: amd64
Version: 2.1-3ubuntu1
Depends: libbluetooth3 (>= 4.9), libc6 (>= 2.4), libncurses5 (>= 5.6+20071006-3), libxml2 (>= 2.6.27)
Filename: pool/universe/
Size: 131320
MD5sum: 8f7980f2ff93d06
SHA1: f21da1d8e5aa068
SHA256: 56d6aed53780261
Description: ncurses-based scanner for Bluetooth devices
btscanner is a tool designed specifically to extract as much information
as possible from a Bluetooth device without the requirement to pair. A
detailed information screen extracts HCI and SDP information, and
maintains an open connection to monitor the RSSI and link quality.
btscanner is based on the BlueZ Bluetooth stack, which is included with
recent Linux kernels, and the BlueZ toolset. btscanner also contains a
complete listing of the IEEE OUI numbers and class lookup tables. Using
the information gathered from these sources it is possible to make
educated guesses as to the host device type.
Bugs: mailto:<email address hidden>
Origin: Ubuntu
[jpereira@jiraya btscanner-2.1]$
This is a trivial initialization bug: memset called with a wrong length (looks like copy-paste mistake).
The attached patch fixes it.