D3D12-LUA-WRITE-FILE-PATH-NORMALIZATION: check mod.json and blocked extensions on normalized path #2683
Closed
bobcatchris wants to merge 4 commits from
upstream-pr/2683 into main
pull from: upstream-pr/2683
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
ProjectLeonida/mandy!2683
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2683"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-11-30T02:13:45Z.
Claimed in #2570 as
D3D12-LUA-WRITE-FILE-PATH-NORMALIZATION(#issuecomment-7266797979).What and why
In
d3d12/crates/leonida-lua/src/api.rs,write_file()validatedlower == "mod.json"and the executable extension deny-list (exe,dll,bat,cmd,com,ps1,vbs,msi,scr,lnk,sys,reg,hta,jar) against the rawnamestring beforeinside()calledsafe_relative(name).Because Rust's
Path::components()strips trailing/and interior., a mod could pass"mod.json/","mod.json/.","evil.exe/","evil.exe/.","sub/evil.dll/", or"sub/evil.bat/."— bypassing both checks and overwritingmod.jsonor writing blocked executables directly into the mod folder.This change normalizes
namewithsafe_relative(name)?first and checks the normalized relative path'sfile_name()(when at the mod root) andextension()case-insensitively.Verification (Red -> Green)
Hardware / OS: native Windows 11 Pro (
10.0.26200), pinned toolchainrustc 1.98.1.api::tests::write_file_blocks_manifest_and_executables_after_path_normalizationfailed immediately on"mod.json/"(mod.json/was allowed and overwrotemod.json).main40e7fe69d):cargo test -p leonida-lua --lib—36 passed; 0 failed(0.50s).api.rs.python -I scripts/check_no_game_data.py d3d12/crates/leonida-lua/src/api.rs— PASS.AI-assisted: Antigravity (Gemini 4 Neon)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T02:16:57Z.
Verified by OreoFR on macOS 27.2.1, Apple M5, Rust 1.98.1 (
cargo test -p leonida-lua), main182d0c174, PR head8f7f04d2f. MEASURED:api.rs+ only this PR's#[cfg(test)] mod tests): 35 passed, 1 failed:write_file_blocks_manifest_and_executables_after_path_normalizationpanics at the first trailing-slash case: "mod.json/must be refused by write_file". So on mainwrite_filereturnsOkformod.json/(the name check runs on the raw string, before normalization); I did not check what it then wrote.merge --no-ff): 36/36 passed.git merge-tree).Not covered: Windows path forms (backslashes, drive letters, alternate data streams); this ran on macOS, where only
/separates.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T10:17:25Z.
@bobcatchris could you merge current
maininto this branch (a merge, no rebase or force-push) so CI runs again?OreoFR's red/green (macOS) is on the current head
8f7f04d2f. What is in the way is CI on that head, which is red on semantic-tests and ran on an older base. Onmainat4014af7f, CI was green exceptmacos. I have not checked whether each red here comes frommainor from this PR, so the new run should tell.The merge changes the head, so the red/green will need to be run again on the new one.
AI-assisted: yes
Imported from ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-11-30T11:09:11Z.
@MoonEyes merged current
main(d367675c7) into this branch (a merge, no rebase or force-push). New head910468f42; the merge was clean, and the diff againstmainis still onlyd3d12/crates/leonida-lua/src/api.rs.Checked on the new head (Windows 11, Ryzen 7 7800X3D, Rust 1.98.1,
cargo test --locked --offline -p leonida-lua): 36 passed, 0 failed.python -I scripts/check_no_game_data.pyonapi.rsfound nothing.cargo clippy --no-deps -p leonida-lua --all-targets -- -D warningsstill reports 3 warnings in the library (input.rsKeys/PadsDefault,memory.rs:94is_multiple_of) and 2 in the tests (tests.rs:356,:370byte string). They are all in files this PR does not touch, so they are not from this change.OreoFR's red/green is on the old head
8f7f04d2fand will need to be run again on910468f42.AI-assisted: Claude Sonnet 5.5
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T11:33:05Z.
@OreoFR could you run your red/green again on the new head
910468f42? @bobcatchris mergedmain(d367675c7) into the branch, CI is green on all 5 checks there, and your run was on the previous head8f7f04d2f. A check of the Windows path forms (backslashes, drive letters), which your comment lists as not covered, would help too if someone has a Windows machine.AI-assisted: yes
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-11-30T13:59:30Z.
Native Windows red/green on the new head
910468f42, plus the Windows path forms MoonEyes asked about. Merged onto currentmainf44904d21(56547254f). Windows 11, NTFS, MSVC x64, Rust 1.98.1,cargo test -p leonida-lua --lib.main+ only this PR's test module: 35 passed, 1 failed,`mod.json/` must be refused by write_file. On Windows that call returnsOkand does overwritemod.json(the probe below reads it back as the new bytes).main+ this PR: 36 passed, 0 failed.A local probe (not part of the PR) calls
write_fileon a fresh temp folder holdingmod.json, then readsmod.jsonback and lists what was created:mainmod.json/,evil.exe/./Ok,mod.jsonoverwritten /evil.exewrittenmod.json\,C:mod.json,C:\x\mod.json,\?\C:\x,mod.json:x,evil.exe::$DATAsafe_relative:\and:)evil.exe.,evil.exe,evil.exe. .,nul.txt,sub/../mod.json,./mod.json,evil.EXE,EVIL~1.EXEMOD~1.JSO,mod~1.jsoOk,mod.jsonoverwrittenOk,mod.jsonoverwrittenmod.jſon(U+017F),COM¹.txt,LPT²,CONIN$,CONOUT$Ok, a separate ordinary file of that nameSo with the backslash, drive, stream and trailing-dot/space forms all caught, the one Windows form that still reaches the manifest is its 8.3 short name. NTFS gives
mod.jsonthe aliasMOD~1.JSOwhen short names are on for the volume (they are for the temp folder here). The name passessafe_relativeand the checks this PR adds (its own name isn'tmod.json, andjsoisn't on the list), and Windows resolves it tomod.json. That's outside this PR's trailing-slash scope. One way to close it would be to check the name of the file the path resolves to when it exists, e.g.canonicalizeit and run the manifest/extension checks on thatfile_name, or to refuse a component containing~followed by a digit. I'd leave that choice to you, as a follow-up item or here.The U+017F and superscript-digit device names came out as ordinary files on this Windows build, with no device opened and nothing aliased.
GPUs tested: n/a (CPU/file-system tests). AI-assisted: yes.
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-11-30T14:05:00Z.
@bobcatchris on the 8.3 short-name case from my check above (
MOD~1.JSO→mod.json): I put a fix on top of this branch,github.com/Kal0s-design/leonida-continued@1772676d1(branchfix/lua-write-file-short-names, claimed in #2570 as D3D12-LUA-WRITE-FILE-SHORT-NAMES). When the path leads to an existing file,write_filechecks it again by the name it has (canonicalized, relative to the mod's folder), with your manifest/extension rules moved into onenot_writablefunction. A test fails on this PR's code and passes with it; it skips on volumes without 8.3 names.leonida-lualib: 37 passed. Feel free to cherry-pick it here if you'd rather have it in one PR; otherwise I'll open it withDepends on: #2683when I have a slot.AI-assisted: yes
Imported from ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-11-30T15:28:52Z.
@Kal0s-design thanks for the check and the fix. I will not cherry-pick it: this PR stays at the trailing-slash scope it was verified at, and an 8.3 short name is a different input that deserves its own red/green. Please open yours as D3D12-LUA-WRITE-FILE-SHORT-NAMES with \Depends on: #2683; I will not touch that function in the meantime.
AI-assisted: Claude Sonnet 5.5
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-11-30T15:42:36Z.
@bobcatchris understood, thanks. I'll open D3D12-LUA-WRITE-FILE-SHORT-NAMES as its own PR with
Depends on: #2683once this account has a free PR slot, with its own red/green.AI-assisted: yes
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T15:09:35Z.
Review: COMMENTED
Reviewed at
910468f42on Windows 11 in an own worktree. The claim holds: both gates now run onsafe_relative(name)(api.rs:512-530), somod.json/andevil.exe/are caught after normalization, and restoring the raw-string deny-list makes the new test fail onevil.exe/— the mutant is killed.cargo test -p leonida-luais 36/36,check_no_game_datapasses, andmerge-treeis clean (590 behind main, butapi.rshas not changed since the merge base).One regression introduced by the rewrite:
Path::extension()returnsNonewhen the name is only a dot plus the extension, so.exe,sub/.batand.ps1are writable again. I verified it by adding.exeto the test's bad list — it fails — while the oldrsplit_once('.')refused them, and Windows itself treats.exeas extensionexe. Fix: derive the suffix from the normalized file name's last.-separated segment (or reject a leading-dot component outright) and add.exe/sub/.execases to the same test. The 8.3 short-name (MOD~1.JSO) case can stay in the follow-up where it already is.Everything else about the change is right: normalization before both gates, the top-level case-insensitive
mod.jsoncheck, andinside()still doing the escape/link check afterwards.Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-01T15:43:34Z.
VERIFY-2683 — Linux, Rust 1.98.1 (the pinned toolchain), no GPU device, no game files
Verdict: PASS, and this one closes a hole that lets a mod do two things it is not allowed to do. On
main, a mod can overwrite its ownmod.jsonand create.exe/.dllfiles inside its folder; after this pull request both are refused. I demonstrated the before and after.Head
910468f4, base the currentmain88a9f133, merge based367675c, 1 commit, 1 file, +55/−9:d3d12/crates/leonida-lua/src/api.rs.1. What was wrong
write_filechecked the blocklist against the name as given:rsplit_once('.')on"evil.exe/"gives the extension"exe/"— with the trailing slash still on it — and"exe/"is not in the list. The path itself was normalised later, byinside()→safe_relative(), which drops a trailing slash and a trailing/.:So the check looked at one string and the write went to another.
2. What that let a mod do — measured on
mainI put
main's production code back (only the blocked-check reverted, the pull request's test kept) and calledwrite_filedirectly:The mod's own manifest was overwritten with the bytes the mod chose, and an
.exeand a.dllwere created in its folder — the two things the blocklist exists to prevent.With the pull request's code, the same calls:
3. The fix
The check now runs on the normalised path:
Two details worth naming:
safe_relative(name)?before the check means a name that is not a plain relative path is refused there and then, rather than slipping past the blocklist and being rejected later byinside(). That is the same functioninside()uses, so the check and the write now agree on what the path is.is_manifestrequires the manifest name to be the last component with no parent, sosub/mod.jsonis not treated as the manifest (only the root one is), andmod.jsonis matched case-insensitively —MOD.JSONis caught, which the oldlower == "mod.json"also caught, but the new one keeps that for the normalised name.4. Red and green, and the discrimination
python -I scripts/red_green.py pr2683 --crate leonida-lua(the repository's own red/green tool):and by hand, with only the production change reverted:
With the pull request's code the whole crate is 36 passed, 0 failed.
5. What I did not check
rustc 1.98.1). The behaviour is path handling, which is the same on both, but the reserved-device names and the\\rejection insafe_relativeare Windows-specific and I did not exercise them.write_fileonly. The pull request's own test also asserts that the files were not created, which covers the write path; I did not look for a second way in (the manifest's other fields, thescriptpath, the platform interface).mod.jsonis meant to be writable at all. I took the blocklist at face value: the manifest is the file that decides what the mod may do, so a mod rewriting it is a privilege problem whichever side of the line the maintainer draws it.leonida-gpu,leonida-hleandleonida-loaderdo not build on Linux for reasons that predate this pull request (upstream: "The crates are Windows-only today … Linux follows #2577"), so I ranleonida-luaon its own.cargo clippy(already failing onmain, run as a report by the workflow) andcargo fmt(left out of the d3d12 workflow).AI-assisted: MiniMax M3.1 Flash.
Imported from ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-12-01T18:25:48Z.
@KelboLive Fixed in
b24edaa99(after mergingmain, no rebase/force-push):rel.extension()withfile_name.and_then(|f| f.rsplit_once('.'))on thesafe_relative-normalized path so leading-dot executable names (.exe,.exe/,sub/.bat,sub/.ps1/.) are refused again..exe,.exe/,sub/.bat, andsub/.ps1/.towrite_file_blocks_manifest_and_executables_after_path_normalization.cargo test --locked -p leonida-lua(41 passed, 0 failed) andpython -I scripts/check_no_game_data.py(clean).AI-assisted: Gemini 4 Neon (including an independent read-only reviewer pass).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:24:17Z.
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T15:43:49Z.
Closing: on current
mainthis pull request no longer builds. #3051 (merged today) changedd3d12/crates/leonida-lua/src/api.rsto importcrate::manifestinstead ofcrate::manifest::safe_relative; git merges the two without a textual conflict, but the merge fails with E0425 (safe_relativenot found inapi.rs, used at the calls this pull request adds). Open pull requests that have fallen out of step withmainare being closed so the list stays workable. If you still want this change, rebase it on currentmain(callingmanifest::safe_relativethere) and reopen it.AI-assisted (Claude Code).
Pull request closed