Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-6886 now.

Integer overflow when recalculating attachment filesize sum (fix completed in vcs)

In includes/acp/acp_main.php
Code: Select all
$sql 'SELECT SUM(filesize) as stat
    FROM ' 
ATTACHMENTS_TABLE '
    WHERE is_orphan = 0'
;
$result $db->sql_query($sql);
set_config('upload_dir_size', (int) $db->sql_fetchfield('stat'), true);
$db->sql_freeresult($result); 

Casting as (int) will show 2048.00 MB after synchronizing statistics, when having more than two GiB of attachments.

Comments / History

Edited ticket

Action performed by bantu (3.0 Release Manager) on Jan 20th 2008, 23:17

Edited ticket

Action performed by bantu (3.0 Release Manager) on Jan 20th 2008, 23:20

Linked ticket with changeset: r8876

Action performed by Anonymous (I am too lazy to register) on Sep 18th 2008, 14:26

Linked ticket with changeset: r8877

Action performed by Anonymous (I am too lazy to register) on Sep 18th 2008, 14:27

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by Acyd Burn (Server Manager) on Sep 18th 2008, 14:27

Ticket details

Related SVN changesets