fix(libSceLibreSsl): honor CONF_MFLAGS_IGNORE_RETURN_CODES in CONF_modules_load_file #25189
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25189"
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 gurtgg on 2026-11-21T19:23:49Z.
What
CONF_modules_load_file_nid_postfix(core/libs/prx/libSceLibreSsl/src/Conf.cpp) to honorCONF_MFLAGS_IGNORE_RETURN_CODES(0x2): return1instead of0onCONFallocation failure, default-pathasprintffailure, and missing/unopenable configuration files whenIgnoreReturnCodesis set, while preserving queued errors unlessCONF_MFLAGS_IGNORE_MISSING_FILE(0x10) matchedCONF_R_NO_SUCH_FILE(matching LibreSSL 2.5.4conf_mod.cv1.27).ENOENT(2) andENXIO(6) toBIO_R_NO_SUCH_FILE(128) inOpens()(matching LibreSSL 2.5.4bss_file.cv1.32).Tested
ConfLoadFileIgnoreReturnCodesandConfLoadFileIgnoreReturnCodesAllocatorincore/libs/prx/libSceLibreSsl/tests/X509VerifyParam.cppexercisingCONF_modules_load_file_nid_postfixon a missing file withflags=0(returns0with SYS/BIO/CONF errors queued),flags=0x2(negative control: returns0before fix,1after fix with the 3 queued errors preserved),flags=0x10(returns1and clears the error queue), and underfailNext=truewithflags=0x2(returns1withCONF_R_MALLOC_FAILUREqueued).Checklist
tools/check_conventions.pypasses (UTF-8 no-BOM LF, zero disallowed comments, Conventional Commits)mainand passes after fixImported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T19:36:35Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
d61020bbd9:tools/check_conventions.pypassed.guest_libressl_x509_verify_param_testsbuilt cleanly.guest_libressl_x509_verify_param,guest_libressl_x509_verify_param_allocator):core/libs/prx/libSceLibreSsl/src/Conf.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me