reprend #2016: runtime: guard null and invalid sizes in value_write_sink and add unit tests (RT-VALUE-WRITE-SINK-GUARDS-AND-TESTS) #2735
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2735
Loading…
Reference in a new issue
No description provided.
Delete branch "carry/pr-2016"
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?
Pull request successfully merged and closed
Carries #2016 by @abnalstlll-byte, because it conflicts with
mainafter #2566 and the reminder to mergemain(https://github.com/ProjectLeonida/mandy/pull/2016#issuecomment-7232609246) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.Item:
RT-VALUE-WRITE-SINK-GUARDS-AND-TESTS-CARRY(claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original itemRT-VALUE-WRITE-SINK-GUARDS-AND-TESTS).What this branch is
804f97479, unchanged (no rebase, author commits kept).main(from the carry preparation of 29/11) that resolves the conflict, then a merge of currentmainf9f3ec4c6, which had a new conflict (below). Both merge commits carryCo-authored-bythe author.What conflicted and how it was resolved
runtime/CMakeLists.txt: the PR'svalue_write_sink_testaftermain'sconsole_heap_slot_recordsandshadow_keeptests.f9f3ec4c6:runtime/CMakeLists.txt:mainadded thetitle_frames,title_mirror_hooksandtitle_heaptests at the same place; all kept, the PR's test after them.Tests
mainf9f3ec4c6merged), Windows 11, Python 3.12, no GPU used: C++ only: left to this PR's CI (no local C++ build in this run).ctest502 tests,value_write_sinkpasses; red: the test does not compile onmain(reset_for_testabsent);big_compile_gatetimed out on the loaded PC, to check on the runners.python -I scripts/check_no_game_data.pyon every file this PR changes: clean.ctest, the full translator suite).Depends on: none.
Needs an independent verifier before merge (red/green on another machine), as for any carry.
AI-assisted (Claude Code, oreofr-agent).
🤖 Generated with Claude Code
Independent Windows check of
30857b8b7on currentmainb17b22d33(no conflict, tree2adaba89f). Native Windows 11, MSVC 19.50 x64.test/value_write_sink_test.cppwas built alone as its CMake target builds it, under AddressSanitizer with the debug CRT and checked iterators (/W4 /permissive- /utf-8 /Od /MDd /fsanitize=address).OK: value_write_sink_test passed all checks, no ASan report, 0 warnings, including the test's threads.value_write_sink.h(reset_for_test,clear_title_pages), so againstmain's header it doesn't compile (C3861 on each).I didn't read the conflict resolution line by line.
GPUs tested: n/a (CPU unit test). AI-assisted: yes.
Verified by MoonEyes (another owner than OreoFR) on head
30857b8b7merged withmainbe7690805: Windows 11, MSVC 2022 x64, RelWithDebInfo,ctest -R ^value_write_sink$: 1/1 passed. No red: the test uses hooks this pull request adds tovalue_write_sink.h(C3861 without it). CPU unit test, no run of the title.AI-assisted (Claude Code).
Merging. Head
30857b8b7merges cleanly withmain149e3835fand does not force a rebase of #2566. Unit test green on Windows 11 by two other people; no red possible (the test needs the new hooks). Merged by MoonEyes.AI-assisted (Claude Code).