PR_Sleep() may return uninitialized variable.

RESOLVED FIXED in 4.1

Status

P3
normal
RESOLVED FIXED
18 years ago
18 years ago

People

(Reporter: wtc, Assigned: wtc)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

18 years ago
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.
(Assignee)

Comment 1

18 years ago
Created attachment 13534 [details]
Proposed fix.
(Assignee)

Comment 2

18 years ago
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
Last Resolved: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.1
You need to log in before you can comment on or make changes to this bug.