Option -softcrc gives false CRC on 64bit platforms

Bug #510054 reported by mkuutti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dvbsnoop
Unknown
Unknown
dvbsnoop (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: dvbsnoop

dvbsnoop -softcrc calculates CRC wrong on 64bit linux (and propably others). This is because u_long is used in src/misc/crc32.[ch] and assumed it to be 32bit. Solution might be use of uint32_t from stdint.h. Dvbsnoop package version 1.4.50-2.

I reported bug to sourceforge's dvbsnoop page and added also patch:
http://sourceforge.net/tracker/?func=detail&aid=2934925&group_id=85040&atid=574724

Patch was tested in Ubuntu 9.10 x86_64 and Ubuntu 9.04 i686

Attaching file 'pat.sec' from Finnish DVB-T network for reference:

dvbsnoop -softcrc -if pat.sec // fails under 64bit

Revision history for this message
mkuutti (martti) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Confirmed, that file indeeds fails CRC check on amd64, and the patch attached to the mentioned bug upstream does fix the issue.

Changed in dvbsnoop (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dvbsnoop - 1.4.50-2ubuntu1

---------------
dvbsnoop (1.4.50-2ubuntu1) lucid; urgency=low

  * Remove html from docs (LP: #521463)
    - update debian/docs
  * Fix CRC on 64bit (LP: #510054)
    - add debian/patches/03-crc-on-64bit.dpatch
  * Update Maintainer field.
    - update debian/control
 -- Mathieu Trudel <email address hidden> Sat, 13 Feb 2010 14:18:34 -0500

Changed in dvbsnoop (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.