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)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: brendan, Assigned: brendan)
Details
(Keywords: js1.5)
Attachments
(1 file)
|
1.65 KB,
patch
|
jband_mozilla
:
review+
shaver
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Updated•24 years ago
|
Keywords: js1.5,
mozilla1.0
Target Milestone: --- → mozilla1.0
| Assignee | ||
Comment 1•24 years ago
|
||
You cc: listers can r= and sr= fast, I bet.
Phil, can you test and vouch for this patch? Thanks.
/be
Comment 2•24 years ago
|
||
Comment on attachment 82556 [details] [diff] [review]
proposed fix
Threadsafety. It's what's for dinner.
sr=shaver.
Attachment #82556 -
Flags: superreview+
Comment 3•24 years ago
|
||
The patch passes the JS testsuite in the debug JS shell on WinNT, Linux.
Am now testing it in the optimized shell...
Comment 4•24 years ago
|
||
The patch passes the JS testsuite in the optimized JS shell, as well -
Comment 5•24 years ago
|
||
Comment on attachment 82556 [details] [diff] [review]
proposed fix
r=jband
Attachment #82556 -
Flags: review+
Comment 6•24 years ago
|
||
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+
| Assignee | ||
Comment 7•24 years ago
|
||
Fixed in the 1.0 branch as well as the trunk.
/be
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 8•24 years ago
|
||
Patch verified on 1.0 branch as well as on trunk;
adding fixed1.0.0 and verified1.0.0 keywords -
Status: RESOLVED → VERIFIED
Keywords: fixed1.0.0,
verified1.0.0
You need to log in
before you can comment on or make changes to this bug.
Description
•