Closed Bug 416286 Opened 17 years ago Closed 16 years ago

Buffer Overflow after setting general.useragent.extra.firefox to a long string

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 328778

People

(Reporter: phanter_root, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.12) Gecko/20080201 asd
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.12) Gecko/20080201 asd

If i go to about:config and add a new chain called "general.useragent.extra.firefox" and alot of text it makes a buffer overflow and can't display the web pages!

Reproducible: Always

Steps to Reproduce:
1. Go to about:config
2. Add a new chain called "general.useragent.extra.firefox"
3. Put in value a lot of text
Actual Results:  
The web pages can't be displayed
What happens when you try to load a web page with a super-long user agent?  What makes you think this is a buffer overflow?
When i try to load a web page it can't be displayed, i see it:

Se ha reiniciado la conexión         

La conexión al servidor fue reiniciada mientras la página se cargaba.      

    *   El sitio podría estar temporalmente no disponible o saturado. Vuelva a intentarlo en unos minutos.

    *   Si no puede cargar ninguna página, compruebe la conexión de red de su ordenador.

    *   Si su ordenador o su red están protegidos por un cortafuegos o un proxy, cerciórese de que se le permite acceder a la Web con Firefox.


--------------------------------------------|

It's in spanish (i have a spanish firefox version)

------------------

I think it is a buffer overflow because when i go to:

Help -> About my PC don't response


----
Summary: Buffer Overflow with a new chain in the about:config → Buffer Overflow after setting general.useragent.extra.firefox to a long string
Bug 451944 is crash case upon PDF open(nppdf32.dll plugin of Adobe 9.0.0 is used), with additional two general.useragent.extra.xxxx.

To Phanter Root(bug opener):

Get NSPR log with "all:5".
Does line like "nsPluginHostImpl::UserAgent return=(null)" exist?
What is set as "User agent string" in HTTP header by Firefox?
Who issued the message in comment #2.
Firefox or plugin or extension? Or Web server?
Crash of Bug 451944 didn't occur with Fx trunk build.
To Phanter Root(bug opener): Can you reproduce problem with Fx latest-trunk?
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.