Closed Bug 2033662 Opened 21 days ago Closed 12 days ago

Incorrect calculation of disk space taken by cookies and site data (17,179,869,184 GB)

Categories

(Toolkit :: Data Sanitization, defect, P3)

Firefox 140
defect

Tracking

()

RESOLVED DUPLICATE of bug 1585978

People

(Reporter: model_capital2v, Unassigned)

Details

Attachments

(1 file)

Attached image 1.png

Steps to reproduce:

Concrete steps to reproduce are unknown, but this bug has persisted across browsing sessions, computer restarts, and Firefox version updates. Currently it occurs in Firefox ESR 140.9.1 (aarch64) on macOS 15.7.5.

Basically, Firefox fails to calculate the correct amount of storage taken by some sites, showing a “magic number” (2^64) instead.

Actual results:

The Manage Cookies and Site Data modal window claims that cookies and other data for google.com take 17,179,869,184 GB of storage. The total disk space for all sites is calculated as 17,179,869,185 GB (1 GB more, which is roughly how much all other sites take, combined).

17,179,869,184 GB is exactly 2^64 bytes (assuming that “GB” means gibibyte, i.e. 2^30 bytes), which suggests an integer overflow.

Expected results:

A correct (much smaller) number should have appeared both in the Manage Cookies and Site Data modal window and the Cookies and Site Data section summary.

The Bugbug bot thinks this bug should belong to the 'Toolkit::Data Sanitization' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Data Sanitization
Product: Firefox → Toolkit

This is a known bug, @manuel do you know if we ever figured out the root cause of this? And do we have a meta bug that tracks this bug specifically?

Severity: -- → S3
Flags: needinfo?(manuel)
Priority: -- → P3

IIRC it was related to some storage API, not sure if we already got down to the root cause. However, I've seen an increase in reports in the past ~1-3 months. Perhaps it got more common now.

@jari: I think you debugged this in some other bug I can't find right now. Could you provide some debugging steps the reporter could follow to help us narrow down the cause?

Flags: needinfo?(manuel) → needinfo?(jjalkanen)

This is unfortunately a known issue. We really should get it fixed up.

Flags: needinfo?(jjalkanen)

Found the (presumable) oldest report.

Status: UNCONFIRMED → RESOLVED
Closed: 12 days ago
Duplicate of bug: 1585978
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: