cd_size cannot be in bytes

Bug #618750 reported by era
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
multicd (Debian)
Fix Released
Unknown
multicd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: multicd

If I specify cd_size = 4707319808 multicd aborts with the following error message:

Can't call method "bcmp" without a package or object reference at /usr/bin/multicd line 1283.

Instrumenting the code around line 1283 reveals that $config{'cd_size'} is an integer, not a Math::BigInt object.

Changing the configuration file to have cd_size= 4596992K seems to work around the problem. Ditto for maxfile_size ("Can't call method "bcmp" without a package or object reference at /usr/bin/multicd line 460.").

I suspect that the author failed to handle the case of a byte count without a multiplier when he converted the code to use Math::BigInt.

(4707319808 bytes is the size of a DVD-R disc, according to http://en.wikipedia.org/wiki/DVD-R.)

 vnix$ lsb_release -rd
 Description: Ubuntu 10.04.1 LTS
 Release: 10.04

 vnix$ apt-cache policy multicd
multicd:
  Installed: 1.7.3-1
  Candidate: 1.7.3-1
  Version table:
 *** 1.7.3-1 0
        500 http://mirrors.nic.funet.fi/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

Related branches

Revision history for this message
era (era) wrote :

Attached please find a trivial patch which corrects this problem.

tags: added: patch
Revision history for this message
era (era) wrote :

FWIW I tried to contact Dan Born, the upstream author, by email a couple of weeks ago about this, but I haven't heard back from him. Maybe he is MIA; his web site doesn't seem to have received any updates after 2005 (call me Pot Kettle Black).

Daniel T Chen (crimsun)
tags: added: patch-forwarded-debian
removed: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package multicd - 1.7.3-1ubuntu1

---------------
multicd (1.7.3-1ubuntu1) oneiric; urgency=low

  * Apply patch from era resolving incorrect use of Math::BigInt
    to handle cd_size in bytes. (LP: #618750)
 -- Daniel T Chen <email address hidden> Sat, 30 Jul 2011 12:31:31 -0400

Changed in multicd (Ubuntu):
status: New → Fix Released
Changed in multicd (Debian):
status: Unknown → New
Changed in multicd (Debian):
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.