Conversation
754f164 to
badbcf4
Compare
badbcf4 to
137d9a6
Compare
137d9a6 to
5891f8d
Compare
…share the append helper
5891f8d to
de0d326
Compare
de0d326 to
b7d03c3
Compare
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. WalkthroughPath utilities now recognize both slash characters and provide native-separator and filename helpers. File-system path handling uses the native separator, and map-name fallbacks use the shared filename helper. ChangesPath handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The path and map fallback changes show no supported regression in the reviewed callers. No actionable merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
Full details: Out of Scope Changes checkExplanation The new public Comment |
Closes #3100.
Depends on #3105; its commits are included until it merges.
Both fallback display-name paths in
MapCache::addMappreviously added one to the result of a backslash search without checking whether a separator was found. A filename containing only forward slashes, or no separator, could therefore pass an invalid pointer toAsciiString::set.Both paths now use
getFileNamefromLib/PathUtil.h, sharing the separator handling introduced by #3105. It accepts either separator and returns the whole filename when neither is present. The extension is preserved, matching the previous behavior for backslash-separated paths:All changes are in Core.
Verification
git diff --checkpasses.loadMapsFromDiskstill rejects slash-only filenames before reachingaddMap. End-to-end non-Windows scanning also requires the separate map-cache path changes in bugfix(map): Fix map cache paths on non-Windows #3107.