Closed Bug 1528568 Opened 1 year ago Closed 1 year ago

Missing error check when calling nsIFile::Exists() in nsToolkitProfileService::SelectStartupProfile()

Categories

(Toolkit :: Startup and Profile System, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox-esr60 --- unaffected
firefox65 --- unaffected
firefox66 --- unaffected
firefox67 --- fixed

People

(Reporter: ehsan, Assigned: ehsan)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

Coverity points to this write-only rv variable https://searchfox.org/mozilla-central/rev/e6520f0a4dd5d7474c32a1164744953ea59be0d0/toolkit/profile/nsToolkitProfileService.cpp#1059 which points to missing error handling here.

Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8231f78228bc
Add error handling for the call to nsIFile::Exists() in nsToolkitProfileService::SelectStartupProfile(); r=mossop
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.