Avoid endless loop on FIT files unknown type and negative size

Includes a test file to reproduce the issue.
Fixes #3229
This commit is contained in:
Ale Martinez
2019-12-03 14:45:47 -03:00
parent 4ed6927626
commit 5bd4404279
2 changed files with 1 additions and 1 deletions

View File

@@ -2875,7 +2875,7 @@ struct FitFileReaderState
field.size);
}
read_unknown( field.size, &count );
if (field.size > 0) read_unknown( field.size, &count );
value.type = SingleValue;
value.v = NA_VALUE;
unknown_base_type.insert(field.type);

Binary file not shown.