Closed Bug 142651 Opened 24 years ago Closed 24 years ago

jsstr.c's dollarStr static is just plain wrong

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: brendan, Assigned: brendan)

Details

(Keywords: js1.5)

Attachments

(1 file)

Two threads racing through interpret_dollar and its caller do_replace could end up both using the same pointer, but only one use would be valid. The other use could even dangle, given unlikely but bad thread scheduling. This is a fix-for-1.0 candidate. /be
Keywords: js1.5, mozilla1.0
Target Milestone: --- → mozilla1.0
Attached patch proposed fixSplinter Review
You cc: listers can r= and sr= fast, I bet. Phil, can you test and vouch for this patch? Thanks. /be
Comment on attachment 82556 [details] [diff] [review] proposed fix Threadsafety. It's what's for dinner. sr=shaver.
Attachment #82556 - Flags: superreview+
The patch passes the JS testsuite in the debug JS shell on WinNT, Linux. Am now testing it in the optimized shell...
The patch passes the JS testsuite in the optimized JS shell, as well -
Comment on attachment 82556 [details] [diff] [review] proposed fix r=jband
Attachment #82556 - Flags: review+
Comment on attachment 82556 [details] [diff] [review] proposed fix a=asa (on behalf of drivers) for checkin to the 1.0 branch
Attachment #82556 - Flags: approval+
Fixed in the 1.0 branch as well as the trunk. /be
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Patch verified on 1.0 branch as well as on trunk; adding fixed1.0.0 and verified1.0.0 keywords -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: