QLeAdvertiserBluez::handleCommandCompleted(): check data size


When reading the reply for the OcfLeReadTxPowerLevel command, check
that the data is not empty before accessing the first byte.

In practice the reply should always contain this byte, because this
command tries to read the power level from the local adapter, not from
some remote untrusted device.

Pick-to: 6.9 6.8 6.5
Change-Id: Iaa504f00a260b438e323e4e0f81ab84a31cd85b5
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit2343daa7943e241e227f223dd2df5322980b1a26
parent9211ce83b6102dc46592d1ee472a0f939dcdf402
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeThu, 22 May 2025 17:46:24 +0200