Repository navigation
Conversation
BN_print threw through NotImplemented_nid_no_patch. It now writes the uppercase hexadecimal form with no leading zeros, as LibreSSL 2.5.4 bn_print.c does, returning 0 when a write fails. A null BIGNUM or BIO throws, where LibreSSL dereferences it. The console behavior is not verified.
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
ahmadmuj
left a comment
There was a problem hiding this comment.
Head 08d6b9b2ca5c3fc3cd76dda3516ffecfc9513755, PR base d9d067f4e0b1025b099d6fe83ad8cae1826d6260. Linux: guest_libressl_bn passes. A separate probe links the actual libSceLibreSsl module. Its negative-zero case fails, passes with a temporary BN_print-only sign correction, then fails after restoration. Other zero, negative-one, positive and wide controls pass throughout.
At Bignum.cpp:320, loaded.neg loses a valid zero sign. Native LibreSSL 2.5.4 BN_hex2bn("-0") creates top=0, neg=1; BN_print returns 1 and writes exactly two bytes, -0. Using the public guest Bignum declaration with live limb storage, this head returns 1 but writes one byte, 0. Both probes check exact bytes, length, return and unchanged input. Could BN_print read the original sign instead of the arithmetic-normalized sign from Load?
This head's own BN_hex2bn normalizes -0 to unsigned zero, so that parser cannot supply the failing input. The probe constructs the source-supported state directly. This is a source compatibility finding, not a console or security claim. Current-main integration is checked for a clean merge only; runtime evidence is from the exact head.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
What
BN_printin libSceLibreSsl threw throughNotImplemented_nid_no_patch. It now writes the uppercase hexadecimal form with no leading zeros, as LibreSSL 2.5.4bn_print.cdoes, returning 0 when a write fails. A null BIGNUM or BIO throws, where LibreSSL dereferences it. The console behavior is not verified.Tested
Windows, WinLibs GCC 15.2.0, Release,
BUILD_TESTING=ON:ctest --test-dir build-full -R "guest_libressl_bn"passesguest_libressl_bn, including the new zero, leading-zero, negative and wide-value print checks.python tools/check_conventions.py --base origin/mainpasses.pr_overlapreports no overlap with any open pull request.Not tested on a console; the behavior follows the public LibreSSL source, unverified against the console.
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)