Closed Bug 1651593 Opened 5 years ago Closed 5 years ago

Unchecked return value of db::GetKnownBodyIds()

Categories

(Core :: Storage: Cache API, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: izbyshev, Assigned: tt)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The return value of db::GetKnownBodyIds() is not checked at https://searchfox.org/mozilla-central/rev/85ae3b91/dom/cache/Manager.cpp#136.

This function executes SQL and thus is not infallible. Is there any reason to skip the check?

Thanks for catching this! I don't think there is a good reason to skip the check. I will submit a patch for that.

Assignee: nobody → ttung
Severity: -- → S4
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P2
Pushed by ttung@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fa56a323d153 Check the return value of db::GetKnownBodyIds(); r=dom-workers-and-storage-reviewers,sg
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: