codebytere

#48640: fix: crash on empty dialog extensions array on Windows

Merged
Created: Oct 23, 2025, 4:40:28 AM
Merged: Oct 25, 2025, 11:14:55 AM
4 comments
Target: main

Description of Change

Closes #48611

Fixes a crash caused by the following:

out_of_range was thrown in -fno-exceptions mode with message "basic_string"

Due to a stricter -fno-exceptions introduced in Chromium via v33.2.0...v33.2.1.

Checklist

Release Notes

Notes: Fixed a potential crash in dialog.showOpenDialog on Windows with an empty extension filter array.

Backports

37-x-y
Merged
PR Number
#48659
Merged At
Oct 27, 2025, 3:17:00 AM
Released In
Not yet
Release Date
Not yet
38-x-y
Merged
PR Number
#48660
Merged At
Oct 27, 2025, 3:17:28 AM
Released In
Not yet
Release Date
Not yet
39-x-y
Merged
PR Number
#48658
Merged At
Oct 27, 2025, 3:23:13 AM
Released In
v39.0.0
Release Date
Oct 27, 2025, 3:16:47 PM

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