Closed Bug 1614629 Opened 5 years ago Closed 5 years ago

Fix freeSpace check in CacheFileIOManager::OverLimitEvictionInternal

Categories

(Core :: Networking: Cache, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: michal, Assigned: michal)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

Check at https://searchfox.org/mozilla-central/rev/a1592902acabf9bded973067133baaac1457f3d3/netwerk/cache2/CacheFileIOManager.cpp#2804 is wrong. The first part of the condition should check whether GetDiskSpaceAvailable() was successful, so there should be -1.

Patch fixes wrong comparison. I also noticed that in bug 979900 I fixed just one freeSpace assignment after GetDiskSpaceAvailable() failure, see https://bugzilla.mozilla.org/show_bug.cgi?id=979900#c14. This patch fixes also other occurrences.

Pushed by mnovotny@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9574ef31b96b Fix freeSpace check in CacheFileIOManager::OverLimitEvictionInternal r=mayhemer
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: