Bug 1206894

Summary: Wrong truncation of MSF block addresses
Product: [Fedora] Fedora Reporter: Christian Bauer <cb>
Component: libcdioAssignee: Adrian Reber <adrian>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 21CC: adrian, fkluknav, hhorak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libcdio-0.92-4.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-18 09:44:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Bauer 2015-03-29 11:41:00 UTC
libcdio-0.92-3 has a bug which causes problems when working with CD images that are larger than 31349 blocks (7 minutes).

Sample program to demonstrate the bug:

#include <stdio.h>
#include <cdio/cdio.h>

int main(void)
{
  msf_t m;
  cdio_lba_to_msf(31500, &m);
  printf("%02x %02x %02x\n", m.m, m.s, m.f);
  return 0;
}

$ gcc -lcdio -o test test.c
$ ./test
++ WARN: number of minutes (7) truncated to 99.
06 00 00

This is a known problem in libcdio and there is an upstream fix available:
http://git.savannah.gnu.org/gitweb/?p=libcdio.git;a=commit;h=02590813decacc76d5db5fd02042d6b99195bc46

Comment 1 Fedora Update System 2015-04-01 13:34:54 UTC
libcdio-0.92-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/libcdio-0.92-4.fc21

Comment 2 Christian Bauer 2015-04-01 21:16:30 UTC
libcdio-0.92-4 works for me, and the test program gives the expected result:

$ ./test
07 00 00

Thanks!

Comment 3 Fedora Update System 2015-04-01 22:25:47 UTC
Package libcdio-0.92-4.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libcdio-0.92-4.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-5246/libcdio-0.92-4.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-04-18 09:44:40 UTC
libcdio-0.92-4.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.