Skip to content

Commit 745625f

Browse files
committed
Fix SP7 invalid data workaround
1 parent 7dc28f5 commit 745625f

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)