fix(libc): route exception deleting destructors through guest heap #19864

Open
DonRyuzaki wants to merge 4 commits from upstream-pr/19864 into main
DonRyuzaki commented 2026-11-14 04:06:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DonRyuzaki on 2026-11-14T04:06:47Z.


What

Use the existing guest operator delete for guest exception object storage. Plain/message exception D0 helpers, future_error's delete slot and filesystem_error's delete slot currently call host free, bypassing the application allocator used by guest operator new.

Keep shared message headers on their existing host heap, preserve RTTI/layout and nondeleting D1/D2 behavior, and leave runtime-owned thrown exception cleanup nondeleting. Update existing fixtures to allocate D0-owned objects through guest operator new and trim only the obsolete allocator-mismatch debt.

Tested

Linux, Ubuntu 24.04 under WSL2, GCC 13.3, Release; base f83d7e1f5444bb813393c10af8422b4c33de31f9, head bf44da84ca968d640a18d60bbcef5d7bc5431b11, tree f696829ac9332b90cb3436e0f09783f6b5b013ae.

  • Unchanged base plus the final fixture fails guest_libc_internal_deleting_destructors with direct D0 uses guest operator delete; normal filesystem, future-category and overflow controls pass.
  • Full runtime: cmake --build build --target libs guest_libc_internal_deleting_destructors_tests guest_overflow_error_tests guest_future_category_tests guest_filesystem_error_tests --parallel 8 passes.
  • ctest --test-dir build --no-tests=error --output-on-failure -R '^guest_(libc_internal_deleting_destructors|overflow_error|future_category|filesystem_error)$': 4/4 pass, zero skips.
  • Recording allocator checks cover nineteen direct D0 entries with D1/D2 and retained-message controls, ordinary virtual delete slots, future message-before-object release, and both filesystem vtables captured from real throws then applied to separately guest-owned matching objects. Runtime-owned throws still avoid guest object deletion.
  • Windows MinGW GCC 15.2 Release object compilation passes for the actual exception Exports.cpp translation unit and all three changed test translation units, including the Windows message-destructor ABI fixture. Its existing assembly probes are unchanged; host message IAT tracking and guest object release tracking remain separate. This is compile-only Windows evidence, without linking or Windows runtime execution. An initial overflow fixture omitted heap initialization; the final fixture initializes it before guest allocation and was rebuilt/retested.
  • Independent static review found no blocker. No console ABI/status measurement is claimed.
  • Local test-only baseline fixture fe3ca946f18bbf5c0087d58e03f419412ba18845; reproduce by taking this head's configured changed test/CMake fixture files onto the base, without its production changes. Runtime cache uses BUILD_TESTING=ON, FT_ENABLE_ERROR_STRINGS=OFF, CMAKE_LINK_DEPENDS_NO_SHARED=ON and pinned dependencies.
  • Literal git diff --check and python -B tools/check_conventions.py --base upstream/main pass. The full checker required manual comparison of #13778, #13782, #14834, #15822, #17300, #18135, #19602 and #19609. All331 reported shared-file diff lines were read and heads/hashes verified. No same physical allocator fix or dependency was found. #14834 adds compatible sibling wrappers, but its old host-free debt sentence should be updated if merged after this PR. #17300 renames a time_put declaration/test symbol; retain that rename alongside these added checks. This is a manual overlap assessment, not a clean checker exit.
  • No game, GPU or console-hardware execution is claimed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Exception cleanup now uses the appropriate memory-release path for exception objects, including exceptions that contain messages or filesystem data. This helps ensure associated resources are released in the correct order and avoids mismatches between how exception objects are allocated and freed.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5307050436 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19864). Originally posted by [DonRyuzaki](https://github.com/DonRyuzaki) on 2026-11-14T04:06:47Z. --- ### What Use the existing guest operator delete for guest exception object storage. Plain/message exception D0 helpers, future_error's delete slot and filesystem_error's delete slot currently call host free, bypassing the application allocator used by guest operator new. Keep shared message headers on their existing host heap, preserve RTTI/layout and nondeleting D1/D2 behavior, and leave runtime-owned thrown exception cleanup nondeleting. Update existing fixtures to allocate D0-owned objects through guest operator new and trim only the obsolete allocator-mismatch debt. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux, Ubuntu 24.04 under WSL2, GCC 13.3, Release; base `f83d7e1f5444bb813393c10af8422b4c33de31f9`, head `bf44da84ca968d640a18d60bbcef5d7bc5431b11`, tree `f696829ac9332b90cb3436e0f09783f6b5b013ae`. - Unchanged base plus the final fixture fails `guest_libc_internal_deleting_destructors` with `direct D0 uses guest operator delete`; normal filesystem, future-category and overflow controls pass. - Full runtime: `cmake --build build --target libs guest_libc_internal_deleting_destructors_tests guest_overflow_error_tests guest_future_category_tests guest_filesystem_error_tests --parallel 8` passes. - `ctest --test-dir build --no-tests=error --output-on-failure -R '^guest_(libc_internal_deleting_destructors|overflow_error|future_category|filesystem_error)$'`: 4/4 pass, zero skips. - Recording allocator checks cover nineteen direct D0 entries with D1/D2 and retained-message controls, ordinary virtual delete slots, future message-before-object release, and both filesystem vtables captured from real throws then applied to separately guest-owned matching objects. Runtime-owned throws still avoid guest object deletion. - Windows MinGW GCC 15.2 Release object compilation passes for the actual exception Exports.cpp translation unit and all three changed test translation units, including the Windows message-destructor ABI fixture. Its existing assembly probes are unchanged; host message IAT tracking and guest object release tracking remain separate. This is compile-only Windows evidence, without linking or Windows runtime execution. An initial overflow fixture omitted heap initialization; the final fixture initializes it before guest allocation and was rebuilt/retested. - Independent static review found no blocker. No console ABI/status measurement is claimed. - Local test-only baseline fixture `fe3ca946f18bbf5c0087d58e03f419412ba18845`; reproduce by taking this head's configured changed test/CMake fixture files onto the base, without its production changes. Runtime cache uses `BUILD_TESTING=ON`, `FT_ENABLE_ERROR_STRINGS=OFF`, `CMAKE_LINK_DEPENDS_NO_SHARED=ON` and pinned dependencies. - Literal `git diff --check` and `python -B tools/check_conventions.py --base upstream/main` pass. The full checker required manual comparison of #13778, #13782, #14834, #15822, #17300, #18135, #19602 and #19609. All331 reported shared-file diff lines were read and heads/hashes verified. No same physical allocator fix or dependency was found. #14834 adds compatible sibling wrappers, but its old host-free debt sentence should be updated if merged after this PR. #17300 renames a time_put declaration/test symbol; retain that rename alongside these added checks. This is a manual overlap assessment, not a clean checker exit. - No game, GPU or console-hardware execution is claimed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Exception cleanup now uses the appropriate memory-release path for exception objects, including exceptions that contain messages or filesystem data. This helps ensure associated resources are released in the correct order and avoids mismatches between how exception objects are allocated and freed. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-14 05:53:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T05:53:21Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against bf44da84ca:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: guest_libc_internal_deleting_destructors_tests, guest_overflow_error_tests built cleanly.
  • CTest (guest_overflow_error, guest_libc_internal_deleting_destructors):
    1/2 Test #1244: guest_overflow_error .......................   Passed    0.02 sec
    2/2 Test #3668: guest_libc_internal_deleting_destructors ...   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 2
    
  • Negative control: with core/libs/prx/libc/src/exception/StandardExceptions.cpp reverted to main and the new tests kept, the suite fails:
    1/2 Test #1244: guest_overflow_error .......................   Passed    0.02 sec
    2/2 Test #3668: guest_libc_internal_deleting_destructors ...Subprocess aborted***Exception:   0.49 sec
    50% tests passed, 1 tests failed out of 2
    
    Restoring the change makes it pass again.
  • Code reading:
    • Verified in core/libs/prx/libc/src/exception/StandardExceptions.cpp that DeletePlain, DeleteMessage, DeleteFutureError_nid_no_patch, and GuestDeleteFilesystemError_nid_no_patch replace std::free with _ZdlPv_nid_postfix, ensuring deallocations route through the registered guest application heap.
    • Verified in core/libs/prx/libc/src/exception/StandardExceptions.cpp that shared exception message headers remain allocated on the host heap via CopyMessage (std::malloc) and deallocated via ReleaseMessage (std::free), maintaining isolation from the guest allocator.
    • Verified that runtime-owned thrown exception cleanup in ThrowPlain, ThrowMessage, ThrowFilesystemError, and RaiseFutureError_nid_no_patch preserves non-deleting destructor callbacks (DestroyGuestMessage_nid_no_patch, DestroyThrownFilesystemError_nid_no_patch, DestroyFutureError_nid_no_patch) passed to __cxa_throw_nid_postfix.
    • Verified that virtual deleting destructor vtable slots and D0 exports across all 19 standard and SCE v2 exception types in core/libs/tests/GuestLibcInternalDeletingDestructors.cpp correctly invoke guest operator delete while D1 complete and D2 base destructors remain non-deleting.
    • Verified that future_error and filesystem_error deallocation sequences in core/libs/tests/GuestLibcInternalDeletingDestructors.cpp properly release nested path and error message storage before releasing the enclosing guest exception object.
    • Verified in core/libs/tests/GuestMessageDestructorAbi.cpp and core/libs/tests/GuestOverflowError.cpp that test fixtures correctly initialize the application heap interface and allocate D0-exercised test objects via _Znwm_nid_postfix.
    • Verified strict AGENTS.md compliance: no comments added to code, correct Conventional Commits format, and debt file docs/dev/debt/libSceLibcInternal.md properly updated without adding extra files.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902083688 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19864#pullrequestreview-5902083688). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T05:53:21Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `bf44da84ca`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `guest_libc_internal_deleting_destructors_tests`, `guest_overflow_error_tests` built cleanly. - **CTest** (`guest_overflow_error`, `guest_libc_internal_deleting_destructors`): ``` 1/2 Test #1244: guest_overflow_error ....................... Passed 0.02 sec 2/2 Test #3668: guest_libc_internal_deleting_destructors ... Passed 0.02 sec 100% tests passed, 0 tests failed out of 2 ``` - **Negative control**: with `core/libs/prx/libc/src/exception/StandardExceptions.cpp` reverted to `main` and the new tests kept, the suite fails: ``` 1/2 Test #1244: guest_overflow_error ....................... Passed 0.02 sec 2/2 Test #3668: guest_libc_internal_deleting_destructors ...Subprocess aborted***Exception: 0.49 sec 50% tests passed, 1 tests failed out of 2 ``` Restoring the change makes it pass again. - **Code reading**: - Verified in core/libs/prx/libc/src/exception/StandardExceptions.cpp that DeletePlain, DeleteMessage, DeleteFutureError_nid_no_patch, and GuestDeleteFilesystemError_nid_no_patch replace std::free with _ZdlPv_nid_postfix, ensuring deallocations route through the registered guest application heap. - Verified in core/libs/prx/libc/src/exception/StandardExceptions.cpp that shared exception message headers remain allocated on the host heap via CopyMessage (std::malloc) and deallocated via ReleaseMessage (std::free), maintaining isolation from the guest allocator. - Verified that runtime-owned thrown exception cleanup in ThrowPlain, ThrowMessage, ThrowFilesystemError, and RaiseFutureError_nid_no_patch preserves non-deleting destructor callbacks (DestroyGuestMessage_nid_no_patch, DestroyThrownFilesystemError_nid_no_patch, DestroyFutureError_nid_no_patch) passed to __cxa_throw_nid_postfix. - Verified that virtual deleting destructor vtable slots and D0 exports across all 19 standard and SCE v2 exception types in core/libs/tests/GuestLibcInternalDeletingDestructors.cpp correctly invoke guest operator delete while D1 complete and D2 base destructors remain non-deleting. - Verified that future_error and filesystem_error deallocation sequences in core/libs/tests/GuestLibcInternalDeletingDestructors.cpp properly release nested path and error message storage before releasing the enclosing guest exception object. - Verified in core/libs/tests/GuestMessageDestructorAbi.cpp and core/libs/tests/GuestOverflowError.cpp that test fixtures correctly initialize the application heap interface and allocate D0-exercised test objects via _Znwm_nid_postfix. - Verified strict AGENTS.md compliance: no comments added to code, correct Conventional Commits format, and debt file docs/dev/debt/libSceLibcInternal.md properly updated without adding extra files. - Note: the AI-assisted checkbox can stay. Looks Good To Me
MarcZX10 commented 2026-11-21 03:43:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T03:43:00Z.

Review: COMMENTED


Reviewed — no blocking findings

The code changes match the stated allocator fix; author-reported checks passed, but I did not run them independently.

What I ran

Reviewed head bf44da84ca968d640a18d60bbcef5d7bc5431b11. No commands were run.

Results

Check Result Note
Changed code review passed Five changed files read
Build and tests not run Results are author-reported
Negative control not run Author reports the fixture fails on the base

Findings

Blocking

None.

Non-blocking

None.

Not verified

Build and test results, Windows runtime behavior, console ABI behavior, and hardware behavior were not independently verified. Read all five files listed as reviewed in the manifest: core/libs/prx/libc/src/exception/StandardExceptions.cpp, core/libs/tests/GuestLibcInternalDeletingDestructors.cpp, core/libs/tests/GuestMessageDestructorAbi.cpp, core/libs/tests/GuestOverflowError.cpp, and docs/dev/debt/libSceLibcInternal.md. No changed files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002627947 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19864#pullrequestreview-6002627947). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T03:43:00Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The code changes match the stated allocator fix; author-reported checks passed, but I did not run them independently. ## What I ran Reviewed head `bf44da84ca968d640a18d60bbcef5d7bc5431b11`. No commands were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Five changed files read | | Build and tests | not run | Results are author-reported | | Negative control | not run | Author reports the fixture fails on the base | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Build and test results, Windows runtime behavior, console ABI behavior, and hardware behavior were not independently verified. Read all five files listed as reviewed in the manifest: `core/libs/prx/libc/src/exception/StandardExceptions.cpp`, `core/libs/tests/GuestLibcInternalDeletingDestructors.cpp`, `core/libs/tests/GuestMessageDestructorAbi.cpp`, `core/libs/tests/GuestOverflowError.cpp`, and `docs/dev/debt/libSceLibcInternal.md`. No changed files were excluded. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-25 05:48:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T05:48:48Z.

Review: APPROVED


Reviewed — looks good

The changed exception deleting destructors route object release through the guest heap, and the inspected code and reported test evidence support merging.

What I ran

Inspected the prepared diff and changed files at head d48521cad7eff09595de959e5435ee2979bd1248 using repo_read.py read tools. No tests or build commands were run in this review. Read all changed lines in StandardExceptions.cpp, GuestLibcInternalDeletingDestructors.cpp, GuestMessageDestructorAbi.cpp, GuestOverflowError.cpp, and fix-libc-internal-exception-delete-heap.md. The manifest lists all five changed files as included; none were excluded.

Results

Check Result Note
Source review passed Changed lines and relevant allocator code inspected
Automated tests not run Test results below are author-reported
Windows runtime and console not run No execution evidence in this review

Negative control

Not run during this review. The author reports that the baseline plus final fixture fails the guest-delete assertion while the named control tests pass.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

The reported Linux build and test runs, Windows compile-only evidence, baseline negative control, and manual overlap assessment were supplied in the PR description and were not rerun here. Windows runtime, console ABI/status, and game behavior were not verified. The review bundle contained all changed files; no changed file was excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6052482240 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19864#pullrequestreview-6052482240). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T05:48:48Z. **Review:** APPROVED --- # Reviewed — looks good The changed exception deleting destructors route object release through the guest heap, and the inspected code and reported test evidence support merging. ## What I ran Inspected the prepared diff and changed files at head `d48521cad7eff09595de959e5435ee2979bd1248` using `repo_read.py` read tools. No tests or build commands were run in this review. Read all changed lines in `StandardExceptions.cpp`, `GuestLibcInternalDeletingDestructors.cpp`, `GuestMessageDestructorAbi.cpp`, `GuestOverflowError.cpp`, and `fix-libc-internal-exception-delete-heap.md`. The manifest lists all five changed files as included; none were excluded. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed lines and relevant allocator code inspected | | Automated tests | not run | Test results below are author-reported | | Windows runtime and console | not run | No execution evidence in this review | ## Negative control Not run during this review. The author reports that the baseline plus final fixture fails the guest-delete assertion while the named control tests pass. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - The changed deleting destructor paths call guest `operator delete`: [StandardExceptions.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/d48521cad7eff09595de959e5435ee2979bd1248/core/libs/prx/libc/src/exception/StandardExceptions.cpp#L83-L88), [future_error and filesystem_error paths](https://github.com/boykopovar/AnyPS5/blob/d48521cad7eff09595de959e5435ee2979bd1248/core/libs/prx/libc/src/exception/StandardExceptions.cpp#L846-L849). - The changed tests exercise direct and virtual D0 deletion, future message/object release order, filesystem path/object release order, and runtime-owned exception cleanup: [GuestLibcInternalDeletingDestructors.cpp](https://github.com/boykopovar/AnyPS5/blob/d48521cad7eff09595de959e5435ee2979bd1248/core/libs/tests/GuestLibcInternalDeletingDestructors.cpp#L49-L167). ## Not verified The reported Linux build and test runs, Windows compile-only evidence, baseline negative control, and manual overlap assessment were supplied in the PR description and were not rerun here. Windows runtime, console ABI/status, and game behavior were not verified. The review bundle contained all changed files; no changed file was excluded. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-27 04:39:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T04:39:44Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 457f0f25b0c08305f5b26eec38dbc081e7cd9829 using repo_read.py to read the prepared diff, changed lines, and targeted source context. I did not run build, test, or precheck commands. The description reports Linux test runs and Windows compile-only checks; those are author-reported results.

Results

Check Result Note
Changed code review passed All six changed files reviewed
Build and tests not run Author reports four tests passed
Negative control not run Only author-reported
Windows runtime and console not run Windows evidence is compile-only

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

I did not independently run the reported Linux tests, Windows compilation, convention checks, or baseline negative control. Physical console behavior was not tested. I read all six changed files at their changed lines and read targeted context in StdioExtras.cpp and ApplicationHeap.cpp. No changed files were excluded; the review bundle did not provide files.json.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6083558890 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19864#pullrequestreview-6083558890). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-27T04:39:44Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `457f0f25b0c08305f5b26eec38dbc081e7cd9829` using `repo_read.py` to read the prepared diff, changed lines, and targeted source context. I did not run build, test, or precheck commands. The description reports Linux test runs and Windows compile-only checks; those are author-reported results. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | All six changed files reviewed | | Build and tests | not run | Author reports four tests passed | | Negative control | not run | Only author-reported | | Windows runtime and console | not run | Windows evidence is compile-only | ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Deleting destructors use guest operator delete](https://github.com/boykopovar/AnyPS5/blob/457f0f25b0c08305f5b26eec38dbc081e7cd9829/core/libs/prx/libc/src/exception/StandardExceptions.cpp#L83) - [Guest operator delete dispatches through the application heap](https://github.com/boykopovar/AnyPS5/blob/457f0f25b0c08305f5b26eec38dbc081e7cd9829/core/libs/prx/libc/src/StdioExtras.cpp#L140) ## Not verified I did not independently run the reported Linux tests, Windows compilation, convention checks, or baseline negative control. Physical console behavior was not tested. I read all six changed files at their changed lines and read targeted context in `StdioExtras.cpp` and `ApplicationHeap.cpp`. No changed files were excluded; the review bundle did not provide `files.json`. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 15:48:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T15:48:10Z.

Review: COMMENTED


I ran guest_libc_internal_deleting_destructors, guest_overflow_error, and guest_underflow_error with the patch applied on Linux. All three passed, exercising the guest heap release path in the patched deleting destructors.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6173209059 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19864#pullrequestreview-6173209059). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T15:48:10Z. **Review:** COMMENTED --- I ran `guest_libc_internal_deleting_destructors`, `guest_overflow_error`, and `guest_underflow_error` with the patch applied on Linux. All three passed, exercising the guest heap release path in the patched deleting destructors. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/19864:upstream-pr/19864'
git switch 'upstream-pr/19864'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/19864'
git switch 'upstream-pr/19864'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/19864'
git switch 'upstream-pr/19864'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/19864'
git switch 'main'
git merge --squash 'upstream-pr/19864'
git switch 'main'
git merge --ff-only 'upstream-pr/19864'
git switch 'main'
git merge 'upstream-pr/19864'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
boykopovar/AnyPS5!19864
No description provided.