Closed Bug 529535 Opened 15 years ago Closed 15 years ago

JS Shell line input buffer overflow bug "fix" breaks interactive interpreter

Categories

(Core :: JavaScript Engine, defect)

1.9.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wes, Assigned: mrbkap)

References

Details

(Keywords: fixed1.9.0.16, regression)

Attachments

(1 file, 1 obsolete file)

This is a regression caused by bug 413735.

To reproduce, build the JS shell from CVS, run it, and type in two JS statements. The second one will be a syntax error.

[10:43]	<mrbkap>	Wes--: I have the fix.
[10:43]	<mrbkap>	Wes--: My bad -- I lost an assignment when backporting to 1.9.0 :-/
10:45]	<mrbkap>	http://pastebin.mozilla.org/684582
[10:45]	<mrbkap>	But I'm still reading
[10:45]	<mrbkap>	Wes--: File a new bug?
Attachment #413075 - Attachment is patch: true
Attachment #413075 - Attachment mime type: application/octet-stream → text/plain
Attached patch FixSplinter Review
Sorry for having to resurrect this, Igor. I don't know how I managed to mangle this quite so badly. Clearly, I didn't test enough.
Assignee: general → mrbkap
Attachment #413075 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #413077 - Flags: review?(igor)
Attachment #413077 - Flags: review?(igor) → review+
Keywords: regression
Comment on attachment 413077 [details] [diff] [review]
Fix

This is NPOTB and fixes a pretty severe regression in the JS shell.
Attachment #413077 - Flags: approval1.9.0.16?
Comment on attachment 413077 [details] [diff] [review]
Fix

Approved for 1.9.0.16. a=ss
Attachment #413077 - Flags: approval1.9.0.16? → approval1.9.0.16+
Thanks, Sam.

Checking in js/src/js.c;
/cvsroot/mozilla/js/src/js.c,v  <--  js.c
new revision: 3.217; previous revision: 3.216
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You're welcome, but next time use the keyword for 1.9.0. ;) (Welcome back from vacation!)
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: