mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
do not load wko files with zero records
Includes a test wko file that previously caused a crash.
This commit is contained in:
committed by
Sean Rhea
parent
6406973cc0
commit
f3cb9c6fab
@@ -207,6 +207,7 @@ WKO_UCHAR *WkoParseRawData(WKO_UCHAR *fb, RideFile *rideFile)
|
||||
* RUN THROUGH EACH RAW DATA RECORD
|
||||
*==============================================================================*/
|
||||
rdist=rtime=0;
|
||||
if (!records) return NULL;
|
||||
while (records) {
|
||||
|
||||
unsigned int marker;
|
||||
|
||||
BIN
src/test/rides/2008_06_25_20_59_49.wko
Normal file
BIN
src/test/rides/2008_06_25_20_59_49.wko
Normal file
Binary file not shown.
Reference in New Issue
Block a user