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>