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

1091 Commits

Author SHA1 Message Date
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
Kalle Olavi Niemitalo
7e025e6eb5 html_textarea: Use memmove rather than memcpy.
This is an overlapping copy and memcpy is not required to support that.

[ From commit a58345f4e7 in ELinks
  0.12.GIT.  --KON ]
2007-05-01 14:40:37 +03:00
Kalle Olavi Niemitalo
44a4ec5cbc Document the meaning of document_options.cp.
Miciah provided part of the text.

[ From commit 487a047264 in ELinks
  0.12.GIT.  --KON ]
2007-05-01 14:23:05 +03:00
Kalle Olavi Niemitalo
466d0d4011 NEWS: mention bugs 928, 947
[ Backported from commits 65fbb90413 and
  a14b830722 in ELinks 0.12.GIT.  --KON ]
2007-05-01 14:14:25 +03:00
Kalle Olavi Niemitalo
612311ffb4 Bug 947, set_hline: Respect wrap_nbsp also if !part->document.
[ Backported from commit ce05aa1f37 in ELinks
  0.12.GIT.  The earlier commit 0b7a56f89a
  changes the CONFIG_UTF8 variant of set_hline, and that does not exist in
  ELinks 0.11.  --KON ]
2007-05-01 14:14:18 +03:00
Kalle Olavi Niemitalo
a7980fcffc Bugs 879, 928, 947: Specially map U+00A0 and U+00AD in translation tables.
[ Backported from commit da3c8c5ce2 in
  ELinks 0.12.GIT.  --KON ]
2007-05-01 14:09:04 +03:00
Kalle Olavi Niemitalo
dd7a3ad95b Bug 879: New constant UCS_SOFT_HYPHEN; use where applicable.
[ Backported from commit 70dc594d93 in
  ELinks 0.12.GIT.  --KON ]
2007-05-01 14:08:34 +03:00
Kalle Olavi Niemitalo
a04af526ed Bug 947, u2cp_: Use UCS_NO_BREAK_SPACE instead of 0xa0.
[ Backported from commit 9d6c0b13e8 in
  ELinks 0.12.GIT.  --KON ]
2007-05-01 14:05:41 +03:00
Kalle Olavi Niemitalo
806fe16027 Bug 712, ssl_set_no_tls: Disable TLS protocols for GnuTLS too.
And log this in NEWS, although that may have to be reverted later if
it turns out this change just hides a real bug elsewhere in ELinks.

[ Backported from commit 2f25d3e57c in
  ELinks 0.12.GIT.  --KON ]
2007-05-01 12:45:26 +03:00
Kalle Olavi Niemitalo
55836e8d8b AUTHORS: add Simon Josefsson
[ From commit d33579bb2f in ELinks
  0.12.GIT.  --KON ]
2007-05-01 12:44:46 +03:00
Simon Josefsson
b1bfa78d1a Use gnutls_set_default_priority.
Thereby enabling TLS 1.2 on GnuTLS versions that support it.

[ From commit 82edb1f892 in ELinks
  0.12.GIT.  --KON ]
2007-05-01 12:44:41 +03:00