1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
Commit Graph

1201 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
566039624f Bug 957: if_assert_failed in ecmascript_put_interpreter. 2007-07-02 22:21:40 +03:00
Kalle Olavi Niemitalo
13b1d26946 Bug 957: Assert that the ECMAScript interpreter is not running.
Add ecmascript_interpreter.backend_nesting, increment it when
beginning to evaluate an expression, and decrement it when evaluation
finishes.  Then assert that it is zero in ecmascript_put_interpreter.
This detects bug 957 and similar ones before they corrupt memory.

[ Backported from commit 58e3ebf2e7 in
  ELinks 0.12.GIT.  --KON ]
2007-07-02 22:21:33 +03:00
Kalle Olavi Niemitalo
0cf60aefb5 NEWS: Bug 755 was fixed.
[ Backported from commit a0b3a3a349 in
  ELinks 0.12.GIT.  --KON ]
2007-07-02 22:20:34 +03:00
Kalle Olavi Niemitalo
cd855a269c Bug 755: A hack to make SMJS preserve integers as private data.
The previous code cast the integer (long actually) to void * and gave
that to JS_SetPrivate.  This did not work because JS_SetPrivate
expects pointers to be aligned and replaces the least significant bit
with a tag.

[ From attachment 379 of bug 755.  This is less clean than attachment
  380 (aka commit 871a1befad in ELinks
  0.12.GIT) but avoids the need to raise the SpiderMonkey version
  requirement in the ELinks 0.11 stable branch.  --KON ]
2007-07-02 22:17:39 +03:00
Kalle Olavi Niemitalo
c16a37a9ad SMJS: comment changes
[ Backported from commit 9743729cb1 in
  ELinks 0.12.GIT.  --KON ]
2007-07-02 22:17:34 +03:00
Kalle Olavi Niemitalo
59b8eeb7fb SMJS: Use JS_GetInstancePrivate where applicable.
This is a further precaution against reading a pointer from the wrong
type of object.  All of the JS_GetPrivate calls were already protected
with JS_InstanceOf checks if assertions are enabled, and many of them
also if assertions are not enabled.

[ Backported from commit 99f648b911 in
  ELinks 0.12.GIT.  --KON ]
2007-07-02 22:17:29 +03:00
Witold Filipczyk
9bbd795787 bug 755: Fixed.
Remember the index of struct form_state in vs->form_info
instead of the pointer to it. The pointer may change,
the index is persistent.
The field ecmascript_obj of the struct form_state is unused.

[ Backported from commit ecc03ad608 in
  ELinks 0.12.GIT.  --KON ]
2007-07-02 22:17:22 +03:00
Kalle Olavi Niemitalo
a15079282a NEWS: mention bug 956 (and bug 954) 2007-07-02 22:17:06 +03:00
witekfl
3faeda97cb Make SpiderMonkey consistent with SEE. Do not cache ecmascript_objs
[ Backported from commit b4d9b7f5a6 in
  ELinks 0.12.GIT, to fix bug 956.  --KON ]
2007-07-02 22:13:55 +03:00
Kalle Olavi Niemitalo
19831ea185 NEWS: sync with 0.12.GIT 2007-06-17 20:32:24 +03:00
Kalle Olavi Niemitalo
38497c4b37 Compare screen_driver.name with strcmp, not memcmp.
screen_driver_change_hook was comparing only strlen(name) characters
and ignoring the '\0'.  To reproduce the bug in ELinks 0.11.3 and
ELinks 0.12.GIT:

- Run TERM=screen elinks.
- In another terminal, run TERM=scr elinks.  Quit this slave ELinks.
- Open the terminal options dialog and set 16 colors.
- Open the option manager and change the terminal.scr.colors option to
  1 and back to 0.
- Note that ELinks no longer displays colors.

That bug could be fixed just by using len+1 instead of len.  However,
there is also another bug: memcmp may compare the specified number of
bytes, even if some of the earlier ones differ; thus, it could in
principle read past the end of the malloc block and thereby crash
ELinks.  Using strcmp may be a little slower but I do not believe it
could become a bottleneck.

[ Backported from commit f6f5eeceb7 in
  ELinks 0.12.GIT.  --KON ]
2007-06-17 20:10:42 +03:00
Kalle Olavi Niemitalo
b641515fcc Ignore src/ID and src/TAGS.
The former is for GNU id-utils and the latter is for GNU Emacs.
2007-06-17 19:41:14 +03:00
Kalle Olavi Niemitalo
fc356aefd7 NEWS: mention query parsing in file: URIs for local CGI 2007-06-17 14:23:01 +03:00
Witold Filipczyk
e96665134a Fix query-part parsing in file: URIs (local CGI).
It was broken in 0.11.2.GIT (a64dd281e9).
Since then, $QUERY_STRING has been empty for <file:///foo/bar?query>.
uri.data is documented as containing both the path and the query.

[ Commit message by me.  --KON ]
2007-06-17 13:40:39 +03:00
Kalle Olavi Niemitalo
6cd6a843d1 Revert 644908c1, "Garbage-collect SMJS objects before flushing caches."
Revert commit 644908c130,
"Garbage-collect SMJS objects before flushing caches."

The extra garbage collections increase the risk of crashing because of
dangling pointers in form_state.ecmascript_obj.  I don't think I'll
have time to properly document the bug and backport the fix before
the 0.11.4 release, so I'm reverting the change instead.
2007-05-30 00:56:01 +03:00
Kalle Olavi Niemitalo
f553679336 Revert 5a49b9f1, "NEWS: mention bug 951"
Revert commit 5a49b9f14d,
"NEWS: mention bug 951"

The extra garbage collections increase the risk of crashing because of
dangling pointers in form_state.ecmascript_obj.  I don't think I'll
have time to properly document the bug and backport the fix before
the 0.11.4 release, so I'm reverting the change instead.
2007-05-30 00:54:29 +03:00
Kalle Olavi Niemitalo
cfa6a6795d NEWS: add severities of bugs and sort accordingly 2007-05-28 11:21:40 +03:00
Kalle Olavi Niemitalo
5a49b9f14d NEWS: mention bug 951 2007-05-28 11:20:35 +03:00
Kalle Olavi Niemitalo
644908c130 Garbage-collect SMJS objects before flushing caches.
[ Backported from commit c33d195ff4 in
  ELinks 0.12.GIT.  --KON ]
2007-05-28 11:14:00 +03:00
Kalle Olavi Niemitalo
d43e49d41e List "Triggered When" before "Arguments" in the event template.
That's the order in all existing event descriptions.

[ From commit 7a1644c252 in ELinks
  0.12.GIT.  --KON ]
2007-05-28 11:11:23 +03:00
Kalle Olavi Niemitalo
bab045df73 List events in alphabetical order.
[ From commit 538e8eb8a5 in ELinks
  0.12.GIT.  --KON ]
2007-05-28 11:10:56 +03:00
Kalle Olavi Niemitalo
01c54027b9 NEWS: mention bug 461 2007-05-28 11:08:47 +03:00
Kalle Olavi Niemitalo
b935fbc6ca Bug 461: Ensure contrast when filling with spaces.
So that the cursor will be visible in the Linux console.

[ From commit c2ca46cb81 in ELinks
  0.12.GIT.  --KON ]
2007-05-28 11:08:06 +03:00
Kalle Olavi Niemitalo
8dbeec1c7e NEWS: mention ${CPPFLAGS} vs. ${AM_CFLAGS} 2007-05-28 10:55:27 +03:00
Kalle Olavi Niemitalo
78c0e74df0 build: Don't use $(AM_CFLAGS) anymore. Use $(CPPFLAGS) instead.
$(AM_CFLAGS) is one of the variables set by Automake, which ELinks no
longer uses.  $(CPPFLAGS) should be used whenever the C preprocessor
is run, according to the GNU Coding Standards.  (My build environment
does have an important -I option there.)

[ From commit 40e257bedd in ELinks
  0.12.GIT.  --KON ]
2007-05-28 10:53:18 +03:00
Kalle Olavi Niemitalo
65ea828654 NEWS: mention the SpiderMonkey check 2007-05-28 10:08:56 +03:00
Miciah Dashiel Butler Masters
98f8f536c4 Update SpiderMonkey configure check Debian compatibility
Support the new libmozjs packages in Debian unstable that replace the
old libsmjs packages.

[ From commits b2ec6e0a3e and
  368504f736 in ELinks 0.12.GIT.  --KON ]
2007-05-28 09:59:28 +03:00
Kalle Olavi Niemitalo
770b24f41e NEWS: Bug 950 now has a number. 2007-05-24 01:05:13 +03:00
Kalle Olavi Niemitalo
10504c626d NEWS: markup changes from 0.12.GIT 2007-05-11 09:47:03 +03:00
Kalle Olavi Niemitalo
646438fd95 NEWS: mention config/install-sh on SunOS 2007-05-11 09:45:30 +03:00
Kalle Olavi Niemitalo
33ba3bd8d4 Prepend $(top_builddir) to @INSTALL@ if it is relative.
Reported to elinks-users on 2006-08-23.

[ From commit 57a9871ea1 in ELinks 0.12.GIT.
  Should fix an error building ELinks in the source directory on SunOS.
  The error was again reported to elinks-users on 2007-05-10.  --KON ]
2007-05-11 09:42:48 +03:00
Kalle Olavi Niemitalo
156f9722b2 NEWS: mention CVE-2007-2027 2007-05-06 10:19:38 +03:00
Jonas Fonseca
652a4bf663 Mention testing of po updates without installing ELinks
Also, fix bugzilla URL.
2007-05-03 12:39:28 +02:00
Jonas Fonseca
928f364ba2 Check if the program path contains "src/" before using ../po files
Don't look for gettext message catalogs in ../po/ unless ELinks is being
run as src/elinks, ./src/elinks, or .../src/elinks.

Discovered by Arnaud Giersch, this alternate fix (than what is in debian
package 0.11.1-1.4) closes debian bug #417789 and redhat bug #235411.
Also reported in: CVE-2007-2027.

Restricting it to only work with --enable-debug was also considered,
however, it is an important feature for translaters so this less
paranoid fix was chosen.
2007-05-03 12:39:22 +02:00
Kalle Olavi Niemitalo
908dbc2440 NEWS: bug 788 is more severe than mere warnings 2007-05-02 01:33:05 +03:00
Kalle Olavi Niemitalo
d580626a3c configure.in: Advertise smb2.c to be included in ELinks 0.12.0.
Should have been in commit af82ab8af7.
Related to commit a5656701ef in ELinks 0.12.GIT.
2007-05-02 01:05:44 +03:00
Kalle Olavi Niemitalo
6e755f0a2f NEWS: mention bug 788 2007-05-02 00:49:50 +03:00
Kalle Olavi Niemitalo
ba1f7d3b95 Bug 788: Define n_a variables if the POPpx macro of Perl needs them.
The configure script checks whether it is possible to compile a use of
POPpx without an n_a variable; if not, the source code then defines
those variables.  This is slower than including Perl's patchlevel.h
and comparing the version numbers to 5.8.8 but I expect this to be
more reliable as well.

[ Backported from commit 432969a3a9 in
  ELinks 0.12.GIT.  --KON ]
2007-05-02 00:47:11 +03:00
Petr Baudis
aedb588e2b Fix perl pre_format_html hook wrt. binary files
When trying to view a binary file, this hook would cut it at the first
'\0'.

[ From commit 5af21a8d29 in ELinks
  0.12.GIT.  --KON ]
2007-05-02 00:27:58 +03:00
Petr Baudis
6aa6a71c23 Fix compilation of perl hooks
It complains here that n_a might be used uninitialized and POPpx doesn't
set anything like it.

[ From commit 0f8ee055db in ELinks
  0.12.GIT.  --KON ]
2007-05-02 00:27:10 +03:00
Kalle Olavi Niemitalo
2d88393f97 NEWS: mention bug 691 2007-05-01 23:59:50 +03:00
Miciah Dashiel Butler Masters
4895620e09 Fix IPv4 DNS lookup bug
In revision 1.15 of dns.c (as it was called way back then), pasky
backported a fix from Links 0.97pre2 to try gethostbyaddr before
trying gethostbyname for DNS lookups:

   MacOS address resolution fix (Aldy Hernandez) (from 0.97pre2)

However, that fix introduced a bug, because it was calling gethostbyaddr
on all addresses, not just IP addresses. Mikulas fixed that bug in Links
0.98:

   Do not call gethostbyaddr when name is not ip address (it should avoid
   some useless nameserver queries)'

This fix was never backported to ELinks. Until today.

This commit is functionally the same as the fix in Links 0.98, plus it uses
inet_aton for great correctness!

This fixes a bug reported in #elinks by tnks, whereby lookups for
yubnub.org resulted in 121.117.98.110 == 0x7975626E == 'y', 'u', 'b', 'n'.
I believe that it also fixes bug 691 (which is already closed with a
workaround).

[ From commit 8344dfe6c9 in ELinks
  0.12.GIT.  --KON ]
2007-05-01 23:56:08 +03:00
Kalle Olavi Niemitalo
705f8d549f NEWS: 0.11.3.GIT _now_ 2007-05-01 17:53:00 +03:00
Kalle Olavi Niemitalo
0a2f95dcf5 NEWS: Use just http: instead of link:http:.
And canonicalize the https URL for bug 712.
2007-05-01 16:59:44 +03:00
Kalle Olavi Niemitalo
5ad02ade29 NEWS: mention bug 396 2007-05-01 16:21:53 +03:00
Jonas Fonseca
ed29b38a9a Never show empty filename in the what-to-do dialog
This fixes the last comment of bug 396.

[ From commit 58c83a9f48 in ELinks
  0.12.GIT.  --KON ]
2007-05-01 16:19:59 +03:00
Kalle Olavi Niemitalo
6f9f09781d NEWS: mention Debian bug 380347 2007-05-01 15:01:10 +03:00
Kalle Olavi Niemitalo
14588b9455 Debian bug 380347: Prevent a buffer overflow in entity_cache.
[ From commit 341d54151f in ELinks
  0.12.GIT.  --KON ]
2007-05-01 15:00:57 +03:00
Kalle Olavi Niemitalo
61032a627b NEWS: mention passive FTP over IPv6 2007-05-01 14:56:02 +03:00
Kalle Olavi Niemitalo
887d650efe Revert 2d6840b9, "Only set the socket protocol family on success."
Revert commit 2d6840b9bd9d3a7a45a5ad92b4e98ff7224d6d97.  It is causing
passive FTP via IPv6 to fail on ftp.funet.fi.  ELinks sends PASV and
the server says "425 You cannot use PASV on IPv6 connections. Use EPSV
instead."

[ Backported from commit c0f488251f in
  ELinks 0.12.GIT.  --KON ]
2007-05-01 14:43:05 +03:00