AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 37 Bitcoin

Switch to ANSI Windows API in `fsbridge::fopen()` function

Public commit record

What the developer wrote

Authored by Hennadii Stepanov

50/100 · Thin
Switch to ANSI Windows API in `fsbridge::fopen()` function
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes how Bitcoin Core opens files on Windows. Previously it used a Unicode-aware Windows function (`_wfopen`) that could handle non-English characters in file paths. Now it uses the older ANSI `fopen`, which only reliably supports a limited set of characters. On some Windows systems this could make file paths containing certain characters fail to open, potentially causing wallet or data file errors. It is not a direct remote exploit, but it is a reliability/security-adjacent change on Windows.

Recommended action

Review whether Bitcoin Core explicitly sets the UTF-8 process codepage on Windows (e.g., via manifest or `SetConsoleOutputCP`/`SetThreadLocale`) before relying on `fopen` with UTF-8 strings. If not, consider using `MultiByteToWideChar` + `_wfopen` or `CreateFileW` directly to preserve Unicode path support. Test file open operations with non-ASCII paths on Windows 10 and earlier versions.

Security signals we found

01

Windows path handling regression

02

Removal of Unicode-aware file open API

03

Potential failure to open wallet/data files with non-ASCII paths

04

C++ codecvt deprecation workaround may have security side effects

Risk score

Why this scored 37/100

Our methodology →
Potential impact 8/30
Exploitability 6/25
Stealth signal 7/15
Affected reach 8/15
Confidence 5/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.