[mythtv-commits] mythtv/fixes/0.24 commit: 10d562420 by Raymond Wagner (wagnerrp)

MythTV noreply at mythtv.org
Thu Jan 26 22:02:26 UTC 2012


      Author:  Raymond Wagner <rwagner at mythtv.org>
 Change Date:  2012-01-26T13:47:41-08:00
   Push Date:  2012/01/26 14:02:17 -0800
  Repository:  mythtv
      Branch:  fixes/0.24
New Revision:  10d562420ca1b61fb1d6206547cb3ea7e76830ab
   Changeset:  https://github.com/MythTV/mythtv/commit/10d562420

Log:

Correct 32-bit false positive autoexpiration when free space is >2TB.

This corrects the symtomatic instances of improper typing in the
autoexpiration code.  The total free space (in KB) is cast from a
64-bit+ long long, to a size_t which varies depending on architecture.
When compiled on a 32-bit system, this unsafe casting results in an
inversion of the conditional every 2TB of freespace.  At 0-2TB free, or
4-6TB free, everything works properly.  At 2-4TB or 6-8TB free, it
immediately deletes anything it can.

Modified:

   mythtv/programs/mythbackend/autoexpire.cpp



More information about the mythtv-commits mailing list