Closed Bug 128825 Opened 22 years ago Closed 22 years ago

Browser crash if I view an image

Categories

(Core :: Internationalization, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: supermario, Assigned: shanjian)

References

()

Details

(Keywords: crash, Whiteboard: need r/sr/a)

Attachments

(1 file, 2 obsolete files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
BuildID:    2002020406

On the website http://www.macx.info/, the author has some images (the headlines
in the middle), which were created by PHP. The URL to the image contains spaces.

http://www.macx.info/include/headlines/phpttf.php?use=Die Qualität enscheidet

If I view the complete website, all is ok, but if I say "View image", the
browser crashes.

Reproducible: Always
Steps to Reproduce:
1. Go to http://www.macx.info/
2. click right on the headline-images (e.g. Die Qualität enscheidet)
3. select "View image"

Actual Results:  the browser show the image and crashes immediately

Expected Results:  the browser show the image

Because I have notice the author, that he use spaces in the URL, it could
possible, he has corrected this in the meantime.
I see an illegal operation in plugin (Flash)
-> plugins
Status: UNCONFIRMED → NEW
Component: XP Apps → Plug-ins
Ever confirmed: true
wfm with win2k and build 20020304.. and Shockwave Flash 6.0 r2

-> Plugins (why XP APPS ?) and if you confirm add a build ID and your flash
version..


Assignee: trudelle → av
Severity: normal → critical
Keywords: crash
QA Contact: sairuh → shrir
I crash immediately while loading the image in new page/frame.
stakc is pointing to DOM...cc'ing jst
stack:
http://climate.netscape.com/reports/incidenttemplate.cfm?bbid=3624069
Hang (not crash) on Linux 2002030108. The browser is unresponsive, but does not
eat CPU time. The context menu has a life of its own, and stays on top of any
other window. After terminating and restarting Moz, talkback appears; talkback
ID TB3635548Q.

In the page source, the image is called with:
<img src="../include/headlines/phpttf.php?use=Die Qualita"t enscheidet">
I don't think this has anything to do with plugins, but rather with the way the
browser tries to retreive (or save) the image.
Attached patch patch proposal v1 (obsolete) — Splinter Review
This bug definitely has nothing  to do with the plugins, this is pure i18 bug,
the attachment is the proposal to patch the problem,  the crash happened
because nsUnicodeToUTF8::Convert() call overwrite the memory, see the patch for
more explanation.
shanjian it's yours now. 
Assignee: av → shanjian
Component: Plug-ins → Internationalization
Attached patch complete patch (obsolete) — Splinter Review
Thanks serge for identifying the problem and providing the original patch.
Attachment #72521 - Attachment is obsolete: true
nominate this one as nsbeta1
Status: NEW → ASSIGNED
Keywords: nsbeta1
nsbeta1+ since it is a crasher.
Keywords: nsbeta1nsbeta1+
frank, could you review my patch?
Whiteboard: need r/sr/a
Comment on attachment 73551 [details] [diff] [review]
complete patch

Does this patch even compile? I see |len| being used furhter down in
nsLocation.cpp, yet you're removing the definition of it.
Attachment #73551 - Attachment is obsolete: true
Comment on attachment 73777 [details] [diff] [review]
update patch to correct a embarassing mistake.

sr=jst
Attachment #73777 - Flags: superreview+
Comment on attachment 73777 [details] [diff] [review]
update patch to correct a embarassing mistake.

make sense r=ftang
Attachment #73777 - Flags: review+
Comment on attachment 73777 [details] [diff] [review]
update patch to correct a embarassing mistake.

a=shaver for 1.0 trunk.
Attachment #73777 - Flags: approval+
fix checked in. 
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
no crash, verified fixed (0315 trunk)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: