fix(relinker): validate ELF headers early #1087
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1087"
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 MuhammadUmair1019 on 2026-10-07T10:15:44Z.
What
Tested
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T03:25:38Z.
The description is empty; please fill in What, Tested and AI-assisted, and say which input needed these checks. A wrong class or machine already fails on main's bounds checks, so as it stands this only changes the error message.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T22:22:58Z.
Review: CHANGES_REQUESTED
Ran build + ctest on this merged onto current main:
elf_headerpasses, and it fails with theElfReader.cppchange reverted, so the test pins the change. Remaining points:e_version,e_ehsize, ident version) are the ones worth keeping; show it with a case that passes on main.ReadHeaderlines and the sametest_elf_header.py(class / data encoding / ident version). Whichever lands first conflicts the other. Please coordinate: list it under Depends on, and either drop the checks #2262 already covers or rebase on it and keep onlymachine,versionandheader size.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T08:01:09Z.
Closing: the points from 10-08 and 10-09 are still open, and the branch conflicts with main in
test_elf_header.pysince #2262. If you decide to continue, please reopen.Pull request closed