mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
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:
@@ -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);
|
||||
|
||||
BIN
test/rides/MultiSport-2019-11-24.fit
Normal file
BIN
test/rides/MultiSport-2019-11-24.fit
Normal file
Binary file not shown.
Reference in New Issue
Block a user