Package: mp3info Version: 0.8.4-7 Severity: normal Tags: patch
Hi, mp3info often crashes on AMD64 (and less frequently on i386 as well) due to an array indexing problem. The 1st hunk of the appended patch solves the bug; the 2nd hunk gets rid of a gcc warning on AMD64. Gabor --- mp3tech.c.orig 2001-07-16 11:56:52.000000000 +0200 +++ mp3tech.c 2005-07-14 10:45:53.000000000 +0200 @@ -257,6 +257,8 @@ int header_layer(mp3header *h) {return layer_tab[h->layer];} int header_bitrate(mp3header *h) { + if (!h->bitrate) + return 0; return bitrate[h->version & 1][3-h->layer][h->bitrate-1]; } --- textfunc.c.orig 2005-07-14 10:46:39.000000000 +0200 +++ textfunc.c 2005-07-14 10:48:26.000000000 +0200 @@ -235,7 +235,7 @@ if(*code) { modlen=code-percent+1; if(modlen > 1000) { - printf("Format modifier beginning at position %d too long!\n",percent-format); + printf("Format modifier beginning at position %ld too long!\n",percent-format); exit(5); } strncpy(mod,percent,modlen); -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (101, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12.2 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages mp3info depends on: ii debconf 1.4.52 Debian configuration management sy ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libncurses5 5.4-8 Shared libraries for terminal hand mp3info recommends no packages. -- debconf information excluded -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]