Debian Bug report logs - #432607
could ignore unknown record types

version graph

Package: fxload; Maintainer for fxload is Debian Astronomy Team <[email protected]>; Source for fxload is src:fxload (PTS, buildd, popcon).

Reported by: Jim Paris <[email protected]>

Date: Tue, 10 Jul 2007 21:57:06 UTC

Severity: normal

Tags: patch

Found in version fxload/0.0.20020411-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Fumitoshi UKAI <[email protected]>:
Bug#432607; Package fxload. (full text, mbox, link).


Acknowledgement sent to Jim Paris <[email protected]>:
New Bug report received and forwarded. Copy sent to Fumitoshi UKAI <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Jim Paris <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: could ignore unknown record types
Date: Tue, 10 Jul 2007 17:56:15 -0400
Package: fxload
Version: 0.0.20020411-1
Severity: normal
Tags: patch

The "fxload" program exits if it encounters an unknown record type in
the hex file, such as types 2, 3, 4, 5.  Programs like srec_cat create
these, and they can be safely ignored in many cases.  The below
patch lets fxload warn but continue after encountering and unknown
record.

-jim

diff -urN fxload-0.0.20020411.orig/ezusb.c fxload-0.0.20020411/ezusb.c
--- fxload-0.0.20020411.orig/ezusb.c	2007-07-10 17:44:54.000000000 -0400
+++ fxload-0.0.20020411/ezusb.c	2007-07-10 17:46:12.000000000 -0400
@@ -357,8 +357,8 @@
 	}
 
 	if (type != 0) {
-	    fprintf (stderr, "unsupported record type: %u\n", type);
-	    return -3;
+	    fprintf (stderr, "ignoring unsupported record type: %u\n", type);
+	    continue;
 	}
 
 	if ((len * 2) + 11 >= strlen(buf)) {


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.21-2-686
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages fxload depends on:
ii  libc6                         2.5-9+b1   GNU C Library: Shared libraries

fxload recommends no packages.

-- no debconf information



Information forwarded to [email protected], Fumitoshi UKAI <[email protected]>:
Bug#432607; Package fxload. (Tue, 03 Nov 2009 22:30:06 GMT) (full text, mbox, link).


Acknowledgement sent to Tzafrir Cohen <[email protected]>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <[email protected]>. (Tue, 03 Nov 2009 22:30:07 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Tzafrir Cohen <[email protected]>
To: [email protected]
Subject: Re: #432607: fxload could ignore unknown record types
Date: Tue, 3 Nov 2009 22:09:19 +0000
Long ago, on Tue, 10 Jul 2007 17:56:15 -0400, Jim Paris wrote:

> The "fxload" program exits if it encounters an unknown record type in
> the hex file, such as types 2, 3, 4, 5.  Programs like srec_cat create
> these, and they can be safely ignored in many cases.  The below
> patch lets fxload warn but continue after encountering and unknown
> record.

But in many other cases this may hide a badly-formatted file. Not to
mention that for many uses ignoring those other address types is plain
wrong.

Add an extra command-line switch for than? What should be the default?

-- 
Tzafrir Cohen         | [email protected] | VIM is
http://tzafrir.org.il |                    | a Mutt's
[email protected] |                    |  best
ICQ# 16849754         |                    | friend




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 16:14:07 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.