Closed Bug 50386 Opened 19 years ago Closed 19 years ago

PR_Sleep() may return uninitialized variable.

Categories

(NSPR :: NSPR, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

In the pthreads version of PR_Sleep() (ptthread.c),
the local variable 'rv' may be returned uninitialized.

The fix is to initialize 'rv' to PR_SUCCESS.
Attached file Proposed fix.
This bug is reported by Fred Batty of iPlanet.

I checked in the bug on the main trunk.
/cvsroot/mozilla/nsprpub/pr/src/pthreads/ptthread.c, revision: 3.40
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.1
You need to log in before you can comment on or make changes to this bug.