test(relinker): cover out-of-range return address register in CIE header #14543
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14543"
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:35:10Z.
What
Add test for CIE record with out-of-range return address column in UnwindRecordBoundsTests.
Tested
unwind_record_bounds_testssuccessfully.python tools/check_conventions.py --base upstream/main --head HEADwith 0 findings.Checklist
NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:46:49Z.
Review: COMMENTED
Reviewed — no blocking findings
The new case builds a CIE whose mapped address is near the top of the address space and expects a
RelinkerException. The reader's checks for this path are in the same function as the CIE size and range checks (EhFrameReader.cpplines 159-162). The test catches anyRelinkerExceptionwithout checking the message, so it would pass for a rejection from an unrelated check.What I ran
be521e975fbb3abf236cdaafe3ac17dde3843fcc; basef2d874c1fdccf781c0fa5d86619bb5dd8894b958. 1 file:core/relinker/relinker/tests/UnwindRecordBoundsTests.cpp(test-only; the existing test file already runs in the relinker jobs).core/relinker/relinker/src/analysis/UnusedNidFilter/EhFrameReader.cpp(lines 159-165 and 210-234 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/be521e975fbb3abf236cdaafe3ac17dde3843fcc/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
RelinkerException. Asserting a message (or the record size) would make the case specific.UnwindRecordBoundsTests.cpp, so they will conflict when merged.Sources
github.com/boykopovar/AnyPS5@be521e975f/core/relinker/relinker/tests/UnwindRecordBoundsTests.cppgithub.com/boykopovar/AnyPS5@f2d874c1fd/core/relinker/relinker/src/analysis/UnusedNidFilter/EhFrameReader.cpp (L159-L234)Not verified
To get this to a good state
Pull request closed