Added another proprietary L&G

This commit is contained in:
Gunnar Skjold
2023-03-30 08:59:56 +02:00
parent 51f761d25e
commit 0d923e30d6
6 changed files with 132 additions and 2 deletions

View File

@@ -44,6 +44,10 @@ int8_t GCMParser::parse(uint8_t *d, DataParserContext &ctx) {
ptr += 3;
headersize += 3;
} else {
len = *ptr;
ptr++;
headersize++;
}
if(len + headersize > ctx.length)
return DATA_PARSE_INCOMPLETE;