test(relinker): cover augmentation length overflow in eh_frame CIE record #14573
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14573"
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 boykopovar/AnyPS5. Originally posted by slopgobblercobbler on 2026-11-01T15:53:52Z.
What
Adds unit tests for DWARF .eh_frame CIE record with augmentation data length exceeding record boundary rejection in UnwindRecordBoundsTests.cpp.
Tested
Checklist
Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T01:26:44Z.
Review: APPROVED
Windows 11, WinLibs GCC 15.2.0 r7, relinker-only Release. Head ad05d1f435 merged into upstream/main
93dbd0f82a:unwind_record_bounds_tests:32 unwind record cases passed.position > end || size > end - positioncheck inEhFrameReader.cpp:184disabled, this branch's test fails (exit 1), while main's still passes. Both the single-byte and the two-byte LEB128 length reach the check, and the freshcieAugLoad/cieAugEhheaders keep it independent of the earlier cases.Heads-up: #14513 and #14527 replace the same
"30 unwind record cases passed"line, so this will conflict with whichever merges first.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:49:57Z.
Review: COMMENTED
Reviewed — no blocking findings
The two new cases feed the relinker's
eh_framereader a CIE whose augmentation data runs past the record, and expect the message "CIE augmentation exceeds record". The reader throws that message (EhFrameReader.cppline 185), and the test checks the substring, so it fails for a different rejection. The relinker jobs passed at this head.What I ran
ad05d1f4358a0200bdb98275a369a7eac9ad65c4; basef2d874c1fdccf781c0fa5d86619bb5dd8894b958. 1 file, +32/-1:core/relinker/relinker/tests/UnwindRecordBoundsTests.cpp(test-only).EhFrameReader.cppline 185 at base).Results
Read-only check output
Precheck was not run: this session does not run code from PR heads. Hosted:
gh api repos/boykopovar/AnyPS5/commits/ad05d1f4358a0200bdb98275a369a7eac9ad65c4/check-runs.Negative control
Not run here. A negative control needs a build, and code from this head is not run here.
Findings
Blocking
None.
Non-blocking
None.
Sources
github.com/boykopovar/AnyPS5@f2d874c1fd/core/relinker/relinker/src/analysis/UnusedNidFilter/EhFrameReader.cpp (L185)github.com/boykopovar/AnyPS5@ad05d1f435/core/relinker/relinker/tests/UnwindRecordBoundsTests.cppNot verified
UnwindRecordBoundsTestswas not confirmed.To get this to a good state
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:33:51Z.
Review: COMMENTED
Reviewed — no blocking findings
The added test exercises a multi-byte CIE augmentation length that exceeds the remaining record, and the parser rejects that boundary condition; execution checks were not available in this review environment.
What I ran
Reviewed head
c7e08ffd24366d84bcbee389037b41fdb0d24270using the repository reader. No build or test command was run.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The author reports that all 84 test cases passed and the conventions check found no issues; these were not run by me. Only
core/relinker/relinker/tests/UnwindRecordBoundsTests.cppwas read from the reviewed files; no files were excluded by the manifest.To get this to a good state
Nothing is required. Optional: run the reported test and conventions checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T02:01:52Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this test-only change; the added case exercises a multi-byte augmentation length that exceeds the CIE record boundary.
What I ran
Reviewed head
24bee4be99f5ff72dce6b549858e8b8bd954b288. No commands or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests and convention checks were not run by this review. The PR description reports 84 test cases passed and zero convention findings; this review did not verify those results. The only changed file was read:
core/relinker/relinker/tests/UnwindRecordBoundsTests.cpp. No changed files were excluded.To get this to a good state
Nothing is required.