Skip to content

Commit 061ec32

Browse files
committed
Fix: normalize path separators on ALL platforms + require soak-asan for release
1 parent b23445b commit 061ec32

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ jobs:
694694

695695
# ── Step 6: Create DRAFT release (not public yet) ─────────────
696696
release-draft:
697-
needs: [smoke-unix, smoke-windows, security-static, codeql-gate, soak-quick, soak-quick-windows]
697+
needs: [smoke-unix, smoke-windows, security-static, codeql-gate, soak-quick, soak-quick-windows, soak-asan, soak-asan-windows]
698698
if: ${{ !cancelled() && !failure() }}
699699
runs-on: ubuntu-latest
700700
permissions:

src/foundation/platform.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,15 @@ int64_t cbm_file_size(const char *path) {
227227
}
228228

229229
char *cbm_normalize_path_sep(char *path) {
230-
/* No-op on POSIX — paths already use forward slashes. */
231-
(void)path;
230+
/* Normalize on ALL platforms — backslash paths can arrive via stored
231+
* data, cross-platform DB files, or Windows-style arguments. */
232+
if (path) {
233+
for (char *p = path; *p; p++) {
234+
if (*p == '\\') {
235+
*p = '/';
236+
}
237+
}
238+
}
232239
return path;
233240
}
234241

0 commit comments

Comments
 (0)