Dissector bug reported for Bluetooth Cycling Power Measurement characteristic for extreme angles value
Wireshark reports a "Dissector bug" when processing a Bluetooth Handle Value Notification for the Cycling Power Measurement characteristic for the extreme angles value.
Steps to reproduce
Send a handle value notification with a Cycling Power Service sensor that includes the extreme angles field.
What is the current bug behavior?
Wireshark reports a bug on the final capture file. The data being sent in the notification appears to be formatted and processed correctly until the extreme angles field. Looking into the code at epan/dissectors/packet-btatt.c:14751, the type given to btatt.cycling_power_measurement.extreme_angles is FT_NONE. I believe this is the source of the error as when proto_tree_add_bitmask is called (which then calls proto_tree_add_bitmask_with_flags), the DISSECTOR_ASSERT_FIELD_TYPE_IS_INTEGRAL(hf) check fails because of this FT_NONE type. Should it instead be FT_UINT24?
What is the expected correct behavior?
This should not report a bug in the log.
Sample capture file
Relevant logs and/or screenshots
Reference above log.
Compiled (64-bit) with Qt 5.15.2, with libpcap, with GLib 2.52.3, with zlib 1.2.11, with SMI 0.4.8, with c-ares 1.15.0, with Lua 5.2.4, with GnuTLS 3.6.3 and PKCS #11 (closed) support, with Gcrypt 1.8.3, with MIT Kerberos, with MaxMind DB resolver, with nghttp2 1.39.2, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2 2.9.9, with QtMultimedia, with automatic updates using WinSparkle 0.5.7, with AirPcap, with SpeexDSP (using bundled resampler), with Minizip.
Running on 64-bit Windows 10 (2009), build 19043, with Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (with SSE4.2), with 16279 MB of physical memory, with locale English_United States.utf8, with light display mode, without HiDPI, with Npcap version 1.31, based on libpcap version 1.10.1-PRE-GIT, with GnuTLS 3.6.3, with Gcrypt 1.8.3, with brotli 1.0.2, without AirPcap, binary plugins supported (21 loaded).
Built using Microsoft Visual Studio 2019 (VC++ 14.29, build 30037).