1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
Commit Graph

113 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
fd7968e638 Bug 698: Keep forms contiguous and non-overlapping and start from 0.
In document.forms, each struct form has form_num and form_end members
that reserve a subrange of [0, INT_MAX] to that form.  Previously,
multiple forms in the list could have form_end == INT_MAX and thus
overlap each other.  Prevent that by adjusting form_end of each form
newly added to the list.

Revert 438f039bda,
"check_html_form_hierarchy: Old code was buggy.", which made
check_html_form_hierarchy attach controls to the wrong forms.
Instead, construct the dummy form ("for those Flying Dutchmans") at
form_num == 0 always before adding any real forms to the list.
This prevents the assertion failure by ensuring that every possible
form_control.position is covered by some form, if there are any forms.

Add a function assert_forms_list_ok, which checks that the set of
forms actually covers the [0, INT_MAX] range without overlapping,
as intended.  Call that from check_html_form_hierarchy to detect
any corruption.

I have tested this code (before any cherry-picking) with:
- bug 613 attachment 210: didn't crash
- bug 714 attachment 471: didn't crash
- bug 961 attachment 382: didn't crash
- bug 698 attachment 239: all the submit buttons showed the right URLs
- bug 698 attachment 470: the submit button showed the right URL

(cherry picked from commit 386a5d517b,
 with conflicts)
2008-07-25 22:31:35 +03:00
Kalle Olavi Niemitalo
295c7760f7 1030: List the bug in NEWS. 2008-07-14 22:34:43 +03:00
Kalle Olavi Niemitalo
7af9092448 NEWS: mention bug 503
(cherry picked from commit 7e8e52d33f)
2008-07-11 18:31:50 +03:00
Kalle Olavi Niemitalo
555dbf7da0 Bug 1027, SMJS: make null mean "none" in elinks.keymaps
elinks.keymaps.main["/"] = null;
used to crash ELinks with a segfault in JS_ObjectIsFunction.
Fix that by recognizing JSVAL_NULL explicitly and treating it as "none".
Likewise, if keymap_get_property would return "none" to ECMAScript,
return JSVAL_NULL instead.
2008-07-11 16:41:14 +03:00
Kalle Olavi Niemitalo
783b52a41e NEWS: mention bug 1021 2008-07-04 22:46:32 +03:00
Kalle Olavi Niemitalo
9f520d331d NEWS: 0.11.4 was released on 2008-06-20 2008-06-21 01:44:38 +03:00
Kalle Olavi Niemitalo
fa7f953d15 NEWS: unlist bogus "bug 451"
When fixing bug 1014, I had added the wrong bug number 451 to NEWS.
Later, I had noticed bug 1014 was missing from NEWS, and added that too.
Don't mention bug 451, which was tagged INVALID already in 2004
and has no real connection to the ELinks 0.11.4 release.
2008-06-21 01:12:54 +03:00
Jonas Fonseca
8015269e36 elinks-0.11.4 2008-06-20 21:58:14 +02:00
Kalle Olavi Niemitalo
e790cdd030 NEWS: Remove the "should be removed" section.
The ELinks 0.11.4 release seems imminent.
2008-06-20 21:58:35 +03:00
Kalle Olavi Niemitalo
e9b7f5d29f NEWS: Critical bug 674 is a duplicate of 956. 2008-06-20 21:57:28 +03:00
Kalle Olavi Niemitalo
6bfaa7ca8d Bug 1016: Avoid JSFunctionSpec. 2008-06-17 00:12:21 +03:00
Kalle Olavi Niemitalo
b166ce38b2 NEWS: mention bug 1014
According to <http://bugzilla.elinks.cz/show_bug.cgi?id=1014#c3>,
I should have already added this to NEWS.  Apparently I hadn't.
2008-06-15 23:06:40 +03:00
Kalle Olavi Niemitalo
8d0677e76a Bug 1014: Fix incompatible pointer type in init_perl.
The second argument of PERL_SYS_INIT3 should be a char ***
but ELinks was giving it a char *(*)[1].

Also, enlarge the array to 2 elements, so that my_argv[my_argc] == NULL
like in main().  PERL_SYS_INIT3 seems hardly documented at all so I'm
not sure this is necessary, but it shouldn't hurt.
2008-06-08 20:38:50 +03:00
Kalle Olavi Niemitalo
b7312e6882 Bug 1012: Compile with -fno-strict-overflow or -fwrapv. 2008-05-10 23:30:00 +03:00
Kalle Olavi Niemitalo
481041ae48 Bug 939: Documented the fix.
The fix itself is in the parent commit.
(cherry picked from commit 4c390589ea,
 rewriting the NEWS entry because the bug also occurred on Debian)
2008-04-28 10:59:20 +03:00
Jonas Fonseca
56ac81c474 elinks-0.11.4rc1 2008-03-04 10:23:09 +01:00
Kalle Olavi Niemitalo
74c22adc69 NEWS: mention bug 1000 2008-03-02 16:36:29 +02:00
Kalle Olavi Niemitalo
0bb128238e Bug 1003: fix bug number in previous commit 2008-03-01 16:57:43 +02:00
Kalle Olavi Niemitalo
6d2e034007 Bug 1001: fix uninitialized-pointer crash in URI rewriting 2008-03-01 15:33:41 +02:00
Kalle Olavi Niemitalo
f33beda650 NEWS: mention bug 987
It was fixed in commit 7e0c0e14e2.
2008-02-17 21:30:35 +02:00
Kalle Olavi Niemitalo
6db80a4fc0 NEWS: "XON/XOFF", not "XON/OFF" 2008-02-17 20:51:21 +02:00
Y Giridhar Appaji Nag
01b0c81227 Bug 1002: Fix build failure on Debian GNU/Linux arch powerpc
Change char id to enum bittorrent_message_id id to prevent FTBFS on
powerpc and s390
2008-02-10 12:35:17 +01:00
Laurent MONIN
ffb5edd047 Patch: fix for bug 938
This patch prevents  handle_itrm_stdin() and clear_handlers(itrm->in.std) to be
called when -remote is set and in.std < 0.
It adds two assertions for in.std >= 0 in handle_itrm_stdin() and
unhandle_itrm_stdin().
May be a bad fix, please test and review.

[Added a NEWS entry.  --KON]
2008-02-09 13:32:53 +02:00
Kalle Olavi Niemitalo
bd67e69bcd Bug 54: Don't disable XON/XOFF flow control.
Do not clear the IXON flag in termios.c_iflag.
Bug 54 did not actually ask for this flag to be kept,
but the cable I am using doesn't seem to have the handshake
lines connected right, so XON/XOFF is a must at 38400 bps,
at least until ELinks learns to send padding based on terminfo.

Any user who has bound actions to Ctrl+S or Ctrl+Q and finds that
they no longer work should just "stty -ixon" before running ELinks.
We don't have any default bindings for those keys, fortunately.

(cherry picked from commit a3d093bd25
 but moved the NEWS entry into the 0.11.4rc0 section)
2008-02-08 00:34:11 +02:00
Kalle Olavi Niemitalo
9c39f43d1b Bug 54: Don't force 8-bit characters and no parity.
Actually, don't use the cfmakeraw function at all,
and don't look for it during configure either.

(cherry picked from commit 87f1661314
 but moved the NEWS entry into the 0.11.4rc0 section)
2008-02-08 00:32:07 +02:00
Jonas Fonseca
cbae4b250d elinks-0.11.4rc0 2008-02-04 23:36:56 +01:00
Kalle Olavi Niemitalo
f3bad399e2 Don't assume sizeof(int)==4 in bittorrent 2008-01-26 15:55:46 +02:00
Kalle Olavi Niemitalo
7515c9753f NEWS: sort by severity 2008-01-22 00:37:36 +02:00
Kalle Olavi Niemitalo
3db6c84f4c Bug 997: Fix unlikely stack corruption in get_pasv_socket.
It is unlikely because the standard members of struct sockaddr_in
(sin_family, sin_port, sin_addr) already require at least 8 bytes
and I don't know of any system that has size_t larger than that.
Besides, at least glibc pads the structure to 16 bytes.
2008-01-22 00:37:36 +02:00
Kalle Olavi Niemitalo
b17fc12036 get_pasv_socket: Use AF_INET6 when appropriate.
When get_pasv6_socket was merged into get_pasv_socket on 2005-04-15,
the AF_INET6 of get_pasv6_socket was lost and the merged function
always returned AF_INET sockets.  This then made getsockname fill
only part of the struct sockaddr_in6, and ELinks sent to the server
an EPRT command that had half the bits missing from the IPv6 address.
At least ftp.funet.fi then rejected the command, helpfully saying
what the address should have been.

This commit fixes active FTP over IPv6.  Passive FTP was already fixed
in 0.11.3.GIT (887d650efe), on 2007-05-01.
2008-01-22 00:37:36 +02:00
Kalle Olavi Niemitalo
95a40f238f NEWS: mention bug 989
This was already fixed in commit 5210d97c37
but not added to Bugzilla before today.
2008-01-07 21:55:26 +02:00
Kalle Olavi Niemitalo
383f95505f Move debian to contrib/debian.
Today on the elinks-dev mailing list, the new maintainer of the Debian
elinks package asked the debian directory to be removed from released
tarballs, because it makes the Debian diff hard to read.  Also, the
files there are out of date.

When the debian directory was discussed in April 2007, people didn't
want it to be removed, so I instead moved it to contrib/debian in
ELinks 0.12.GIT (599cf3d91e).
And now I'm doing the same in 0.11.3.GIT.
2008-01-06 22:27:25 +02:00
Witold Filipczyk
2e926b7d4b bug 978: Python's webbrowser.open_new_tab(URL) works since now. 2007-11-22 19:09:20 +01:00
Kalle Olavi Niemitalo
5477c215f4 NEWS: Bug 975 was not in previous versions. 2007-11-19 22:56:13 +02:00
Kalle Olavi Niemitalo
de23a950f4 Bug 975: Fix int/size_t pointer type mismatch.
On machines where sizeof(size_t) > sizeof(int), this could corrupt the stack.
I think -Wno-pointer-sign added by configure hid this bug until now.
STRLEN is correct in Perl 5.6.0 and later, perhaps earlier too.
2007-11-11 10:31:19 +02:00
Kalle Olavi Niemitalo
355deabaab NEWS: mention the builtin_modules warning 2007-11-11 10:20:45 +02:00
Kalle Olavi Niemitalo
ea12f34638 NEWS: Bug 937 is CVE-2007-5034. 2007-11-05 01:14:47 +02:00
Kalle Olavi Niemitalo
4e2bff364a NEWS: mention bug 959 2007-07-10 16:46:29 +03:00
Kalle Olavi Niemitalo
4d6df8128d NEWS: mention bugs 613, 714, 961 2007-07-10 15:38:11 +03:00
Kalle Olavi Niemitalo
80f25486ff NEWS: sync with 0.12.GIT 2007-07-02 23:55:53 +03:00
Kalle Olavi Niemitalo
50e3fe7c73 NEWS: mention bug 936
[ Backported from commit c1e89ee375 in
  ELinks 0.12.GIT.  --KON ]
2007-07-02 22:56:02 +03:00
Kalle Olavi Niemitalo
8d02ae75c8 Link to gitweb at repo.or.cz, rather than pasky.or.cz.
The history converted from CVS is not in repo.or.cz though, so keep
referring to pasky.or.cz for that.  (We don't seem to use
"gitweb.elinks.cz", which is a DNS alias for pasky.or.cz.)

<paakku> Do you think we should maybe point people to gitweb at
    repo.or.cz rather than pasky.or.cz?
<pasky> absolutely
<pasky> actually I thought we already are pointing people at
    repo.or.cz
<pasky> at least there was some movement to do that already, I believe
    :)

[ From commit 9f75e1f094 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:41:42 +03:00
Kalle Olavi Niemitalo
1f98a67552 Reapply 5a49b9f1, "NEWS: mention bug 951"
Revert commit 5a49b9f14d of 2007-05-28,
"NEWS: mention bug 951", which was reverted in commit
f553679336 on 2007-05-30.
It is now safe to apply because bug 956 has been fixed.
2007-07-02 22:36:08 +03:00
Kalle Olavi Niemitalo
e1e81db035 NEWS: mention bug 960 2007-07-02 22:28:15 +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
a15079282a NEWS: mention bug 956 (and bug 954) 2007-07-02 22:17:06 +03:00
Kalle Olavi Niemitalo
19831ea185 NEWS: sync with 0.12.GIT 2007-06-17 20:32:24 +03:00
Kalle Olavi Niemitalo
fc356aefd7 NEWS: mention query parsing in file: URIs for local CGI 2007-06-17 14:23: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