Closed Bug 217558 Opened 23 years ago Closed 20 years ago

[UMR] Conditional jump or move depends on uninitialised value(s) alg_fips186_1_x3_1

Categories

(NSS :: Libraries, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 287116
3.11.1

People

(Reporter: timeless, Unassigned)

Details

Attachments

(1 file)

if (memcmp(x_j, rng->Xj, BSIZE) == 0) { I believe that rng->Xj contains unitialized values, but i'm not 100% certain. valgrind was running on boffo. security/manager/Makefile.in was modified to pass mozilla cflags so that i could get debug info build is: ac_add_options --enable-default-toolkit=xlib ac_add_options --disable-debug ac_add_options --enable-optimize="-O2 -g" This is reproducable for me. steps: ./run-mozilla.sh /usr/local/bin/valgrind --logfile-fd=3 ./mozilla-bin 1>~/out 2>~/err 3>~/valgrind create a new profile (once i did this using the profile manager and once i just had no profiles) load http://www.eightlines.com/neil/mozskin/installjar.html enter /tmp/OSXilla.jar in the file field click install click install click ok quit check valgrind log.
Attached file valgrind output —
Ian, Nelson, could you review this UMR report in prng_fips1861.c?
Assignee: wtc → bugz
Summary: [UMR] Conditional jump or move depends on uninitialised value(s) alg_fips186_1_x3_1 → [UMR] Conditional jump or move depends on uninitialised value(s) alg_fips186_1_x3_1
RNG_RandomUpdate calls this update function with the address of the global rng context, which address is kept in a global variable globalrng. That global rng context is allocated with a call to PORT_ZAlloc, so it is not uninitialized. My guess is that the value of the variable globalrng has been clobbered in the build being tested.
can you suggest some way for me to detect/spot such a corruption?
QA Contact: bishakhabanerjee → jason.m.reid
Assignee: bugz → nobody
QA Contact: jason.m.reid → libraries
Version: 4.0 → 3.3
*** This bug has been marked as a duplicate of 287116 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Target Milestone: --- → 3.11.1
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: