Re: Crash bug and proposed patch

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
Kalle Olavi Niemitalo <[email protected]> writes:

> joey <[email protected]> writes:
>
>> I recently ran into a crash bug with elinks. I've provided a backtrace,
>> a sample document, and a proposed patch. Basically, html_special() in
>> src/document/html/renderer.c sets document->refresh without checking
>> to see if document is a valid pointer first (inside the SP_REFRESH
>> case).

This was fixed as bug 927 in ELinks 0.11.3, released on 2007-04-15.

> The SP_FRAMESET case uses document->frame_desc without checking
> whether document is NULL.  It would be interesting to know if
> that too can be used to crash ELinks.

I think this cannot crash, because SP_FRAMESET is called only if
SP_USED returns true, which it does only if document != NULL.

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGamR2Hm9IGt60eMgRAvkhAJ0c0ZJcfUuMWdNsxZ20VrFJ7UZ9DwCeO2px
mHCB3/Uv0+gc7fG61YjfYHQ=
=uFCG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.