Closed
Bug 1748237
Opened 3 years ago
Closed 2 years ago
Running the FIPS self-test returns an incorrent result
Categories
(NSS :: Test, defect, P4)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: anna.weine, Assigned: anna.weine)
Details
Attachments
(2 files)
Bltest fails to output an understandable result of the FIPS self-test.
Steps to reproduce:
bltest -F
Actual results:
CK_RV: 48.
Expected result:
Success/failure, if failure then maybe the exception code (48 in this case, apparently).
| Assignee | ||
Updated•3 years ago
|
Version: 4.0 → 3.74
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Attachment #9258052 -
Attachment description: WIP: Bug 1748237: Adding a better error message. → Bug 1748237: Adding a better error message.
| Assignee | ||
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•2 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
•
|
||
It looks like as gyp defines by design NSS_FIPS_DISABLED, clang considered the code right after it as unreachable (with --enable-fips it worked).
The approach to have
#if defined NSS_FIPS_DISABLED && !defined(__clang__)
fprintf(stdout, "FIPS self-test failed with: NSS_FIPS_DISABLED\n");
return SECFailure;
#endif
worked, but I think removing these lines is more robust.
Updated•2 years ago
|
Attachment #9328901 -
Attachment description: WIP: Bug 1748237 - Repairing unreachable code in clang built with gyp → Bug 1748237 - Repairing unreachable code in clang built with gyp
Comment 4•2 years ago
|
||
https://hg.mozilla.org/projects/nss/rev/f650c5c7fd437efbcd857e9ff0ab5385741ff76c
https://hg.mozilla.org/projects/nss/rev/54c52619dd44e2483baa01c8dc0ddcaaf2c7617d
Status: REOPENED → RESOLVED
Closed: 2 years ago → 2 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•