checkmp3 sometimes just exits when called in verbose mode "-v"

Bug #500026 reported by KPMueller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkmp3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: checkmp3

Ubuntu 9.04 amd64
checkmp3 (1.98-7)
Sometimes when I call checkmp3 in verbose mode "checkmp3 -v",
the program just exits, printing only:

GOOD_FRAMES 0
BAD_FRAMES 0
LAST_BYTE_CHECKED 0
USER_TIME 0.00s
SYS_TIME 0.00s

The funny thing about this behaviour is that it does not depend on
a certain mp3 file.
I can just issue the same command again and receive a different
(meaning: the expected) result the next time.
If I want to use "checkmp3 -v" in a shell script I have to wrap it in a loop that
retries the call until I get the desired result.

Variable $? contains "0" after such a failed call.

Related branches

Revision history for this message
KPMueller (grinsekatz5) wrote :

accessing uninitialized variable "flag_options->byte_limit"

in mp3_check.c on approx. line 204
 "flags.bflag = TRUE";
bflag is implicitly set, but flag_options->byte_limit remains uninitialized

this may cause random premature exits
in mp3_check_misc.c on approx. line 82
 if (flags->bflag && (file_info.byte_count > flag_options->byte_limit))

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package checkmp3 - 1.98-10

---------------
checkmp3 (1.98-10) unstable; urgency=low

  * Correct misreported track duration with sampling rates other than
    44.1 kHz. Fix courtesy KPMueller. (LP: #500024)
  * When -b does not have a specified value, default to 1 MiB. This
    prevents the use of uninitialized memory, which in turn had led to
    premature termination. (LP: #500026)
  * Switch to source format 3.0.
  * Update to policy 3.9.2.
    - Add build-arch/build-indep targets to debian/rules.
  * Add Homepage field.
 -- Ubuntu Archive Auto-Sync <email address hidden> Mon, 17 Oct 2011 09:11:51 +0000

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

Other bug subscribers

Remote bug watches

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