feat(libSceLibreSsl3): implement the ERR library, function and reason string lookups #15628

Merged
alvaroelpob merged 1 commit from upstream-pr/15628 into main 2026-11-10 10:29:47 +00:00
alvaroelpob commented 2026-11-03 22:24:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-03T22:24:05Z.


What

Implements ERR_lib_error_string, ERR_func_error_string and ERR_reason_error_string in libSceLibreSsl3. They return null for every code: the firmware 13.42 run of libSceLibreSsl3 returned null for all 917 LibreSSL table codes, its string loaders are empty and the module exports no ERR_load_strings to add strings.

Tested

Linux x86-64 (WSL2), Release: the full build passes and ctest --test-dir build -j16 passes 3829 of 3829 tests, including the new guest_libressl3_error_strings. python3 tools/check_conventions.py --base upstream/main passes. Not run on a console or in a title.

Checklist

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5145436804 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15628). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-03T22:24:05Z. --- ### What Implements `ERR_lib_error_string`, `ERR_func_error_string` and `ERR_reason_error_string` in libSceLibreSsl3. They return null for every code: the [firmware 13.42 run of libSceLibreSsl3](https://github.com/boykopovar/AnyPS5/pull/9535#issuecomment-6407060914) returned null for all 917 LibreSSL table codes, its string loaders are empty and the module exports no `ERR_load_strings` to add strings. ### 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 x86-64 (WSL2), Release: the full build passes and `ctest --test-dir build -j16` passes 3829 of 3829 tests, including the new `guest_libressl3_error_strings`. `python3 tools/check_conventions.py --base upstream/main` passes. Not run on a console or in a title. ### 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: #12945, #14366, #14465, #14889, #14890, #14992, #15031, #15045, #15119, #15289, #15303, #15406, #15449, #15472, #15514, #15544, #15591, #15599, #15616, #15618, #15620, #15622, #15623, #15624, #15625, #15627 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
BunnyFl commented 2026-11-04 02:31:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-04T02:31:45Z.

Review: APPROVED


@alvaroelpob thanks. This matches the firmware 13.42 run I posted on #9535, which this PR cites. It also checks out against 13.42's libSceLibreSsl3.sprx (objdump -T): ERR_lib_error_string, ERR_func_error_string and ERR_reason_error_string are defined exports, and no ERR_load_strings is exported.

What I ran: head 957b1a067e merged onto main 1c8c0efc8c, Windows 11, WinLibs GCC, Release:

  • guest_libressl3_error_strings and public_headers pass (2 of 2);
  • mutation, the three return nullptr; changed to return "";: guest_libressl3_error_strings fails;
  • tools/check_conventions.py --base upstream/main on the head: all checks passed;
  • tools/pr_overlap.py --branch: no shared exports. None of the 10 PRs it couldn't compare adds these three.

As on #15618, your open LibreSsl3 PRs conflict with one another on the export count line and adjacent lines.

Approving.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5762392764 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15628#pullrequestreview-5762392764). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-04T02:31:45Z. **Review:** APPROVED --- @alvaroelpob thanks. This matches the firmware 13.42 run I posted on #9535, which this PR cites. It also checks out against 13.42's `libSceLibreSsl3.sprx` (`objdump -T`): `ERR_lib_error_string`, `ERR_func_error_string` and `ERR_reason_error_string` are defined exports, and no `ERR_load_strings` is exported. **What I ran:** head `957b1a067e` merged onto `main` `1c8c0efc8c`, Windows 11, WinLibs GCC, Release: - `guest_libressl3_error_strings` and `public_headers` pass (2 of 2); - mutation, the three `return nullptr;` changed to `return "";`: `guest_libressl3_error_strings` fails; - `tools/check_conventions.py --base upstream/main` on the head: all checks passed; - `tools/pr_overlap.py --branch`: no shared exports. None of the 10 PRs it couldn't compare adds these three. As on #15618, your open LibreSsl3 PRs conflict with one another on the export count line and adjacent lines. Approving.
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!15628
No description provided.