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

1278 Commits

Author SHA1 Message Date
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
fa20852ce2 GCC 4.2.1 needs -Wno-address, not -Wno-always-true.
[ Backported from ELinks 0.12.GIT.  The 0.11 branch is still using
  older Autoconf macros.  ]
2007-11-11 10:19:19 +02:00
Kalle Olavi Niemitalo
8165e85d82 Use -Wno-always-true only if $CC accepts it. GCC 4.1 doesn't. 2007-11-11 10:05:39 +02:00
Witold Filipczyk
809b03efdf Do not show always evaluate as true warnings. 2007-11-11 10:05:32 +02:00
Kalle Olavi Niemitalo
ea12f34638 NEWS: Bug 937 is CVE-2007-5034. 2007-11-05 01:14:47 +02:00
Kalle Olavi Niemitalo
e00b6cf7a8 Rewrite wiki to en.wikipedia.org, avoid server bug.
<http://www.wikipedia.org/w/wiki.phtml?search=sue%20lawley>
incorrectly redirects to
<http://en.wikipedia.org/w/wiki.phtml?search=sue%2520lawley>
which searches for "sue%20lawley" rather than "sue lawley".
By using en.wikipedia.org directly, we avoid the server bug.
Prompted by an elinks-users post on 2007-07-27.

I asked on #wikimedia-tech, and www.wikipedia.org does always
redirect to en.wikipedia.org; it does not guess any other
language based on headers or IP addresses or such.  Also, the
redirection exists only for compatibility, and skipping it
avoids a few roundtrips to the server.  So this change is good
even if the server is eventually fixed.
(cherry picked from commit fd902e81da)
2007-07-30 16:05:40 +03:00
Kalle Olavi Niemitalo
f02778e1c3 Remove gettext doc excerpt until the license is sorted out.
The Free Software Foundation has distributed the GNU gettext manual
under at least two different licenses (a brief copyleft and GNU FDL),
but neither of those seems compatible with the GPLv2 of ELinks.
(cherry picked from commit 9c1873a517)
2007-07-22 01:45:35 +03:00
Kalle Olavi Niemitalo
e9f9d70492 configure.in: Actually the snapshots aren't daily. 2007-07-11 23:00:53 +03:00
Kalle Olavi Niemitalo
4e2bff364a NEWS: mention bug 959 2007-07-10 16:46:29 +03:00
Witold Filipczyk
2fe43f275d configure.in: X11 - try link an executable using -lX11.
[ Backported from commit 6bbd8e1686 in
  ELinks 0.12.GIT on 2007-07-05, for bug 959.  --KON ]
2007-07-10 16:10:02 +03:00
Kalle Olavi Niemitalo
4d6df8128d NEWS: mention bugs 613, 714, 961 2007-07-10 15:38:11 +03:00
Witold Filipczyk
37c04db1d6 check_html_form_hierarchy: Old code was buggy.
Old code caused the assertion failure on the shutdownday's page.
2007-07-10 15:35:23 +03:00
Kalle Olavi Niemitalo
134ac92527 Debian bug 431211: Correct GNU GPL version in debian/copyright. 2007-07-06 02:10:26 +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
96fc8419df Bug 936: Allow Autoconf 2.59 too, for elinks.cz compatibility.
[ From commit 045c5509f5 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:54:18 +03:00
Kalle Olavi Niemitalo
c4873ba243 Bug 936: Require Autoconf 2.61 or later.
[ From commit b2d95b11f5 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:53:44 +03:00
Kalle Olavi Niemitalo
45767788b1 Bug 936: Create stamp-h.in in autogen.sh.
[ From commit 6572a506f2 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:53:11 +03:00
Witold Filipczyk
6bec461302 contrib: Tool for view pages offline.
This tool is intended for developers to make debugging ELinks more fun.

[ From commit 4e310fd9aa in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:51:49 +03:00
Witold Filipczyk
9470cbbc1e test, CGI: added a simple form to test CGI.
[ From commit 1b0bad8cbc in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:50:33 +03:00
Kalle Olavi Niemitalo
a8fd05b401 SMJS: Fix error "forms.namedItem is not a function".
Commit 63752c854b303f5f58636a512a137bf3702e051b on 2004-12-27
seems to have broken this.

[ From commit c9b2fbbd46 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:49:09 +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
907ef0b7d3 Reapply 644908c1, "Garbage-collect SMJS objects before flushing caches."
Reapply commit 644908c130 of 2007-05-28,
"Garbage-collect SMJS objects before flushing caches." which was reverted
in commit 6cd6a843d1 on 2007-05-30.
It is now safe to apply because bug 956 has been fixed.
2007-07-02 22:34:11 +03:00
Kalle Olavi Niemitalo
e1e81db035 NEWS: mention bug 960 2007-07-02 22:28:15 +03:00
Kalle Olavi Niemitalo
ba54124f16 Bug 960: Redefine LOADMSGCAT_USE_MMAP instead of HAVE_MMAP.
And add a prominent notice as stipulated in GNU GPL version 2 section 2a.
2007-07-02 22:24:47 +03:00
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