Android scan record parsing: add length checks when extracting UUIDs


The code was unconditionally trying to extract UUIDs of size 2, 4, or
16 bytes simply based on the advertising type, not checking if the
data actually contains enough bytes.
That can trigger reads past the end of the buffer when parsing malformed
packets.

Fix by adding the proper checks.

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