prng_fips1861.c redefines the macro BSIZE on HP-UX

VERIFIED FIXED in 3.12.3

Status

NSS
Libraries
--
trivial
VERIFIED FIXED
12 years ago
9 years ago

People

(Reporter: Wan-Teh Chang, Assigned: glen beasley)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: FIPS)

(Reporter)

Description

12 years ago
When we compile NSS on HP-UX, we get the following compiler warning:

cc -o HP-UXB.11.11_DBG.OBJ/HP-UX_ABI32_FPU/prng_fips1861.o -c -g -DHPUX10 -Ae +Z
 -DHPUX -Dhppa -D_HPUX_SOURCE -D_USE_BIG_FDS -Aa +e +DA2.0 +DS2.0 -DHPUX11 -DXP_
UNIX -DSHLIB_SUFFIX=\"sl\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"_3\" -DSOFTO
KEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -DDEBUG -UNDEBUG -DDEBUG_svrbl
d -DNSS_USE_ABI32_FPU -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE -DMP_API_COMPA
TIBLE -I../../../../dist/HP-UXB.11.11_DBG.OBJ/include  -I../../../../dist/public
/nss -I../../../../dist/private/nss -Impi -Iecl  prng_fips1861.c
cpp: "prng_fips1861.c", line 78: warning 2001: Redefinition of macro BSIZE.

I examined all the system headers in /usr/include and its subdirectories.
I found that the macro BSIZE is defined in the system header file
<sys/param.h>:

#define BSIZE   DEV_BSIZE

but not used anywhere.  So the redefinition of macro BSIZE in prng_fips1861.c
is benign, hence the "trivial" severity of this bug.

I suggest that we only fix this bug (by renaming BSIZE as RNG_BSIZE
or FIPS_BSIZE, and renaming the related macro GSIZE similarly) on the
trunk (NSS 3.12) to avoid redoing the FIPS RNG algorithm testing.
I suggest you merely 
#undef BSIZE
(Assignee)

Updated

9 years ago
Blocks: 459298
(Assignee)

Updated

9 years ago
Assignee: wtc → glen.beasley
(Assignee)

Updated

9 years ago
Whiteboard: FIPS
(Assignee)

Comment 2

9 years ago
bug 457045 has fixed this issue by replacing FIPS 186-2 PRNG with SP 800-90 Hash_DRBG. The file prng_fips1861.c no longer exists in the current NSS source.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Reporter)

Updated

9 years ago
Status: RESOLVED → VERIFIED
Target Milestone: --- → 3.12.3
You need to log in before you can comment on or make changes to this bug.