A bug fix to gpsbabel related to this:
https://bugzilla.redhat.com/show_bug.cgi?id=989851
Tested on 5.6 amd64.

Index: Makefile
===================================================================
RCS file: /cvs/ports/geo/gpsbabel/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile    10 Oct 2013 02:08:22 -0000      1.26
+++ Makefile    10 Feb 2015 09:18:42 -0000
@@ -11,9 +11,9 @@ PKGNAME-tk=           gpsbabel-tk-${VERSION}
 PKGNAME-qt=            gpsbabel-qt-${VERSION}
 CATEGORIES=            geo
 
-REVISION-main=         0
-REVISION-tk=           0
-REVISION-qt=           0
+REVISION-main=         1
+REVISION-tk=           1
+REVISION-qt=           1
 
 HOMEPAGE=              http://www.gpsbabel.org/
 
Index: patches/patch-garmin_fit_c
===================================================================
RCS file: patches/patch-garmin_fit_c
diff -N patches/patch-garmin_fit_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-garmin_fit_c  10 Feb 2015 09:18:42 -0000
@@ -0,0 +1,20 @@
+$OpenBSD$
+
+- fix a bug in garmin_fit parsing 
+  https://bugzilla.redhat.com/show_bug.cgi?id=989851
+
+--- garmin_fit.c.orig  Tue Feb 10 09:40:34 2015
++++ garmin_fit.c       Tue Feb 10 09:46:30 2015
+@@ -113,6 +113,12 @@ fit_parse_header(void)
+     debug_print(1,"%s: profile version=%d\n", MYNAME, ver);
+     debug_print(1,"%s: fit_data.len=%d\n", MYNAME, fit_data.len);
+   }
++  
++  if (len > 12) {
++    is_fatal(len != 14, MYNAME ": .FIT header with unrecognized size\n");
++    // Unused according to Ingo Arndt
++    gbfgetuint16(fin);
++  }
+ }
+ 
+ static gbuint8

-- 
Manuel Giraud

Reply via email to