Bluetooth Darwin: check size before parsing manufacturer data


The code was converting NSData into a QByteArray and then treating its
first two bytes as a manufacturer id. However, if the data is malformed,
the array could contain less than two bytes.

This patch adds an explicit check.

Task-number: QTBUG-145934
Pick-to: 6.11 6.8 6.5 5.15
Change-Id: I3c4db09057c5166d5334af02d7bdcfdd6db7ce87
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commitd73d7c4aa1b04d911695628799518db5be72a235
parent6b98ffaf88a32b42246dc8cba93bfee92a57a4c6
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 29 Apr 2026 08:38:16 +0000