Closed
Bug 288659
Opened 20 years ago
Closed 20 years ago
crash if I browse the homepage with bad javascripts.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ohmyghostkimo, Assigned: bugzilla)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-TW; rv:1.7.6) Gecko/20050318 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-TW; rv:1.7.6) Gecko/20050318 Firefox/1.0.2
To execute these javascripts code:
var cl = new Array(null,"z","x","d","c","a","a","b","a");
for (i=1;i<=cl.length;i++) {
document.write(cl[i]);
}
or
var cl = new Array(null,"z","x","d","c","a","a","b","a");
for (i=1;i=cl.length;i++) {
document.write(cl[i]);
}
Reproducible: Didn't try
Steps to Reproduce:
1. just run the code.
Actual Results:
Firefox have no response and even crush.
Expected Results:
Just fix it.
The Bug makes firefox be not safe.
| Reporter | ||
Comment 1•20 years ago
|
||
(In reply to comment #0)
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-TW; rv:1.7.6)
Gecko/20050318 Firefox/1.0.2
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-TW; rv:1.7.6)
Gecko/20050318 Firefox/1.0.2
>
> To execute these javascripts code:
>
> var cl = new Array(null,"z","x","d","c","a","a","b","a");
> for (i=1;i<=cl.length;i++) {
> document.write(cl[i]);
> }
>
> or
>
> var cl = new Array(null,"z","x","d","c","a","a","b","a");
>
> for (i=1;i=cl.length;i++) {
> document.write(cl[i]);
> }
>
> Reproducible: Didn't try
>
> Steps to Reproduce:
> 1. just run the code.
>
> Actual Results:
> Firefox have no response and even crush.
>
> Expected Results:
> Just fix it.
> The Bug makes firefox be not safe.
sorry, I have some wrong in my report.
I will modify it:
firefox only crush or had no response with:
for (i=1;i=cl.length;i++)
And the code is running rightly(I posted the wrong before):
for (i=1;i<=cl.length;i++)
Comment 2•20 years ago
|
||
I cannot reproduce your crash. The code creates an infinite loop ("i=cl.length"
is an assignment, always returning true since cl.length is non-zero), but after
a short while of high CPU usage (the loop) a confirm dialog comes up announcing
that a script is causing the application to "run slowly" and giving you the
opportunity to cancel it.
I get no crash.
Group: security
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Component: General → JavaScript Engine
Product: Firefox → Core
Resolution: --- → WORKSFORME
Summary: crush if I browse the homepage with bad javascripts. → crash if I browse the homepage with bad javascripts.
Version: unspecified → 1.7 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•