Closed Bug 189563 Opened 22 years ago Closed 22 years ago

use of uninitialized value found by valgrind

Categories

(Other Applications Graveyard :: Venkman JS Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: roc, Assigned: rginda)

References

Details

(Keywords: valgrind)

Attachments

(1 file)

Valgrind was complaining about the use of an uninitialized value in a conditional in jsinterp.c, and sure enough, _callHook in jsd_step.c appears to not initialize hookresult. Patch follows.
Attached patch probable fix (deleted) — Splinter Review
I'm not completely sure what hookresult is supposed to mean, but this looks right, and certainly can only improve the situation.
->JSD
Assignee: brendan → rginda
Component: JavaScript Engine → JavaScript Debugger
QA Contact: pschwartau → caillon
Comment on attachment 111893 [details] [diff] [review] probable fix Rob, wanna review this?
Attachment #111893 - Flags: review?(rginda)
hookresult controls whether or not the call hook is called again on the way out of the function in question. I'd rather return JS_TRUE, just to be safe. I'll check this in when the tree opens.
Status: NEW → ASSIGNED
According to brad TBox, the warning is gone.
Blocks: 59652, 59659, 179819
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Other Applications
Keywords: valgrind
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: