FS#35055 - Int overflow in "Total Installed Size" display

Attached to Project: Pacman
Opened by Isaac Dupree (idupree) - Wednesday, 01 May 2013, 20:50 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 01 May 2013, 20:56 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After going a while without upgrading, pacman -Syu informed me
"Total Installed Size: -1761.30 MiB"

The cause is
./src/pacman/util.c:
struct table_row_t {
const char *label;
int size;
};
static void add_transaction_sizes_row(alpm_list_t **table, const char *label, int size)

in which these "int size" should be "off_t size" to match the types/sizes of values that are passed to it.
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 01 May 2013, 20:56 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#34616 

Loading...