Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 780934 Details for
Bug 989851
gpsbabel: Definition message reserved bits not zero
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Backport of upstream r4400 garmin_fit fix for 1.4.4
0001-Fix-Garmin-.fit-file-handling-RHBZ-989851.patch (text/plain), 3.61 KB, created by
Conrad Meyer
on 2013-07-31 06:09:21 UTC
(
hide
)
Description:
Backport of upstream r4400 garmin_fit fix for 1.4.4
Filename:
MIME Type:
Creator:
Conrad Meyer
Created:
2013-07-31 06:09:21 UTC
Size:
3.61 KB
patch
obsolete
>From 8d9e1069ca5df11c5a8cda2ff0c77e02fff04b8d Mon Sep 17 00:00:00 2001 >From: Conrad Meyer <cse.cem@gmail.com> >Date: Tue, 30 Jul 2013 23:04:01 -0700 >Subject: [PATCH] Fix Garmin .fit file handling (RHBZ 989851). > >--- > gpsbabel-1.4.4-bug989851.patch | 50 ++++++++++++++++++++++++++++++++++++++++++ > gpsbabel.spec | 12 +++++++++- > 2 files changed, 61 insertions(+), 1 deletion(-) > create mode 100644 gpsbabel-1.4.4-bug989851.patch > >diff --git a/gpsbabel-1.4.4-bug989851.patch b/gpsbabel-1.4.4-bug989851.patch >new file mode 100644 >index 0000000..138d10c >--- /dev/null >+++ b/gpsbabel-1.4.4-bug989851.patch >@@ -0,0 +1,50 @@ >+diff -urN -U20 gpsbabel-1.4.4.orig/garmin_fit.c gpsbabel-1.4.4/garmin_fit.c >+--- gpsbabel-1.4.4.orig/garmin_fit.c 2012-05-14 07:59:17.000000000 -0700 >++++ gpsbabel-1.4.4/garmin_fit.c 2013-07-30 22:59:03.675857670 -0700 >+@@ -96,40 +96,46 @@ >+ ver >> 4, ver & 0xf); >+ if (global_opts.debug_level >= 1) { >+ debug_print(1,"%s: protocol version=%d\n", MYNAME, ver); >+ } >+ >+ // profile version >+ ver = gbfgetuint16(fin); >+ // data length >+ fit_data.len = gbfgetuint32(fin); >+ // File signature >+ is_fatal(gbfread(sig, 4, 1, fin) != 1, >+ MYNAME ": Unexpected end of file\n"); >+ if (sig[0] != '.' || sig[1] != 'F' || sig[2] != 'I' || sig[3] != 'T') { >+ fatal(MYNAME ": .FIT signature missing\n"); >+ } >+ >+ if (global_opts.debug_level >= 1) { >+ 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 >+ fit_getuint8(void) >+ { >+ int val; >+ >+ if (fit_data.len == 0) { >+ // fail gracefully for GARMIN Edge 800 with newest firmware, seems to write a wrong record length >+ // for the last record. >+ //fatal(MYNAME ": record truncated: fit_data.len=0\n"); >+ if (global_opts.debug_level >= 1) { >+ warning("%s: record truncated: fit_data.len=0\n", MYNAME); >+ } >+ return 0; >+ } >+ val = gbfgetc(fin); >+ if (val == EOF) { >+ fatal(MYNAME ": unexpected end of file with fit_data.len=%d\n",fit_data.len); >+ } >diff --git a/gpsbabel.spec b/gpsbabel.spec >index 8e8d39b..72983c1 100644 >--- a/gpsbabel.spec >+++ b/gpsbabel.spec >@@ -1,6 +1,6 @@ > Name: gpsbabel > Version: 1.4.4 >-Release: 3%{?dist} >+Release: 4%{?dist} > Summary: A tool to convert between various formats used by GPS devices > > Group: Applications/Text >@@ -36,6 +36,10 @@ Patch23: gpsbabel-1.4.3-nosolicitation.patch > Patch24: gpsbabel-1.4.3-gzip.diff > # Add aarch64 (RHBZ 925480) > Patch25: gpsbabel-1.4.4-config.patch >+# Fix header parsing bug in (some) Garmin .fit files. >+# Fixed in upstream SVN, but ETA on next release is 1+ years and upstream does >+# not want to issue a bugfix release. >+Patch26: gpsbabel-1.4.4-bug989851.patch > > BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) > >@@ -90,6 +94,9 @@ rm -rf shapelib > %patch23 -p1 > %patch24 -p1 > >+# Garmin .fit bug fix (# 989851) >+%patch26 -p1 >+ > # Get rid of bundled zlib > # configure --with-zlib=system is not enough, > # building still accesses bundled zlib headers >@@ -180,6 +187,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : > %endif > > %changelog >+* Tue Jul 30 2013 Conrad Meyer <cemeyer@uw.edu> - 1.4.4-4 >+- Fix Garmin .fit file handling (RHBZ 989851). >+ > * Sun Mar 24 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.4.4-3 > - Add aarch64 (RHBZ 925480). > >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 989851
:
780327
|
780332
| 780934