Skip to content

Commit e211f37

Browse files
authored
Merge pull request #182 from quo/pr-sp7fix
Fix SP7 invalid data workaround
2 parents 7dc28f5 + 745625f commit e211f37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ipts/parser.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ class Parser {
118118
* This causes a parse error, because the "0b" should be "0f".
119119
* So let's just ignore these packets.
120120
*/
121-
if (reader.size() == 4)
121+
if (reader.size() == 4) {
122+
reader.skip(reader.size());
122123
return;
124+
}
123125

124126
this->parse_report_frames(sub);
125127
break;

0 commit comments

Comments
 (0)