fix(relinker): accept a UTF-8 BOM in patch metadata #25897
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25897"
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 mcarkade on 2026-11-22T20:29:47Z.
What
Accept the optional UTF-8 byte order mark at the start of native patch metadata. Previously the parser rejected the file before it could read the opening JSON object.
Tested
Windows 11 with MinGW GCC 15.2. A metadata-only document with zero patch entries and a UTF-8 BOM failed against the original native parser and loaded after the change. The production
relinker_game_patchCTest target passed. Conventions passed.Checklist
main; no other open PR implements the same functionsNotImplemented_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 PrivacyOnion on 2026-11-22T20:37:34Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
3d667086a1:tools/check_conventions.pypassed.relinker_game_patch_testsbuilt cleanly.relinker_game_patch):core/relinker/relinker/src/patching/GamePatch.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T22:52:00Z.
Review: APPROVED
Reviewed — looks good
Nothing in the reviewed change blocks merging, and the implementation matches the stated goal of accepting a UTF-8 BOM at the start of patch metadata.
What I ran
Reviewed head
3d667086a1d8894f26725472f921844041d3598e. I did not run commands or tests; the Windows 11 CTest and conventions results are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests were not run in this review. Read
core/relinker/relinker/src/patching/GamePatch.cppandcore/relinker/relinker/tests/GamePatchTests.cpp;files.jsonwas not available in the prepared review folder, so excluded files and the reviewed-file list could not be independently confirmed.To get this to a good state
Nothing is required.