Closed Bug 119085 Opened 23 years ago Closed 23 years ago

cache entries corrupted if size of metadata is zero

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: gordon, Assigned: gordon)

References

Details

Attachments

(1 file)

nsCacheMetaData::UnflattenMetaData() returns an error when metadata size is zero, causing the associated entry to be unusable.
Attached patch return NS_OK for size = 0. (deleted) — Splinter Review
Darin, I changed the patch to exit early on size==0 rather than change the default return error to catch problems when the reported size doesn't match the size implied by the data itself.
Comment on attachment 64899 [details] [diff] [review] return NS_OK for size = 0. sr=darin
Attachment #64899 - Flags: superreview+
Target Milestone: --- → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
gordon: Is it possible to check this into the 0.9.8 branch? I'm attempting to checkin my patch in to the branch this week and I need yours to maintain proper functionality. Thanks,
I don't see bug 35340 listed as an important bug for 0.9.8. Are you sure you're going to get drivers approval? That's all I need to check this in. I would rather check it in before they branch. Are you ready to check in your patch?
I'm working to get reviews right now for bug 35340. I'm also generating momentum, so this will be accepted into 0.9.8 branch.
gordon: I just now had a word with jud. 35340 will not be going into the 0.9.8 branch. So, it is OK if you check this in the trunk for 0.9.9. sorry about the confusion.
patch checked in. Marking FIXED.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: