Fix crash caused by incorrectly formatted device reports.

This commit is contained in:
Sean Wilson committed 2018-04-06 10:50:15 -04:00
1 parent fb29f5b937
commit 644c0a247d
1 file changed
+2
@@ -147,6 +147,8 @@ uint8_t BLEScanner::parseReportByType(const uint8_t* scandata, uint8_t scanlen,
uint8_t len = 0;
uint8_t const* ptr = NULL;
if ( scanlen < 2 ) return 0;
// len (1+data), type, data
while ( scanlen )
{