codebytere

#50003: fix: potential UAF in OnDownloadPathGenerated

Merged
Created: Mar 2, 2026, 7:25:46 AM
Merged: Mar 2, 2026, 9:28:15 AM
4 comments
Target: main

Description of Change

Fix potential UAF OnDownloadPathGenerated. There's already a base::WeakPtrFactory.

Checklist

Release Notes

Notes: none

Backports

39-x-y
Merged
PR Number
#50009
Merged At
Mar 2, 2026, 5:36:42 PM
Released In
v39.8.0
Release Date
Mar 3, 2026, 10:03:24 AM
40-x-y
Merged
PR Number
#50011
Merged At
Mar 2, 2026, 5:35:41 PM
Released In
v40.7.0
Release Date
Mar 3, 2026, 10:03:33 AM
41-x-y
Merged
PR Number
#50010
Merged At
Mar 2, 2026, 5:36:13 PM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron