Tatsuya Kinoshita
006871f44c
Update ChangeLog
2022-04-10 11:47:54 +09:00
Tatsuya Kinoshita
020f626a95
Remove unused encodeB declaration
2022-04-10 10:07:27 +09:00
Tatsuya Kinoshita
13dea10910
Remove unused MAX_WIDTH
2022-04-10 10:07:04 +09:00
Tatsuya Kinoshita
79dc67566a
Prefer https for GNU URLs
2022-04-10 10:06:33 +09:00
Tatsuya Kinoshita
eb7ebb48ed
Update ChangeLog
2022-04-09 19:38:24 +09:00
Tatsuya Kinoshita
ca9f5fc096
Merge pull request #222 from rkta/Wall
...
Fix all reported warnings when -Wall is enabled and enable -Wall by default. While there, move OPTS to end of CFLAGS. This allows the user to override default options.
2022-04-09 19:32:49 +09:00
Tatsuya Kinoshita
fecbe424c2
Update ChangeLog
2022-04-08 20:53:12 +09:00
Tatsuya Kinoshita
9d7d98c237
Merge pull request #221 from rkta/configure
...
Add some missing checks to configure.
2022-04-08 20:44:46 +09:00
Tatsuya Kinoshita
f80ccd42a6
Merge pull request #220 from rkta/posubst
...
Do not swallow errors from GCC
2022-04-08 20:40:07 +09:00
Tatsuya Kinoshita
ba3b7547a0
Update ChangeLog
2022-04-06 20:09:22 +09:00
Tatsuya Kinoshita
7ed4f7796c
Adjust spacing in menu strings
...
cf. https://github.com/tats/w3m/issues/225
2022-04-06 20:08:00 +09:00
Tatsuya Kinoshita
79e8f2d608
Fix typo in menu strings
2022-04-06 20:07:39 +09:00
Tatsuya Kinoshita
f323f98b1a
Update ChangeLog
2022-04-05 22:42:02 +09:00
Tatsuya Kinoshita
93b6fce6ca
Merge branch 'bug/po-de'
2022-04-05 22:34:35 +09:00
Markus Hiereth
9e930f88d9
Updated German message catalogue
2022-04-05 22:30:29 +09:00
Tatsuya Kinoshita
9a8b0b11b7
Merge pull request #209 from sebras/master
...
Add Swedish translation.
2022-04-05 22:21:45 +09:00
Rene Kita
97af1e481f
Do not swallow errors from GCC
...
Without this patch posubst always exits with 0. This is a problem when
chaining commands.
2022-02-20 11:25:15 +01:00
Rene Kita
d5817a26c7
Use strict and warnings in posubst
2022-02-20 11:25:15 +01:00
Rene Kita
cb3118b389
Check for linux/fb.h when configuring
2022-02-20 11:17:27 +01:00
Rene Kita
a0c8de3f3f
Let configure fail if Perl is not in $PATH
2022-02-20 11:17:27 +01:00
Rene Kita
0d3416e0c2
Let configure fail if no terminal library is found
2022-02-20 11:17:26 +01:00
Rene Kita
72177529d2
Ignore autom4te cache directory
2022-02-20 11:17:26 +01:00
Rene Kita
5b33d9f239
Cast away a warning under OpenBSD 7.0
2022-02-20 11:14:54 +01:00
Rene Kita
bf40283a80
Enable -Wall by default
2022-02-20 11:14:54 +01:00
Rene Kita
0073ec6daf
Use unsigned int for image size
...
This removes a warning with -Wall.
2022-02-20 11:14:54 +01:00
Rene Kita
cf2fd623fc
Use cast to suppress warning
2022-02-20 11:14:54 +01:00
Rene Kita
d3ea4b33f1
Initialize struct before use
2022-02-20 11:14:54 +01:00
Rene Kita
c5c63a1a3d
Fix a potential buffer overflow
...
When compiling with -Wformat-overflow=2 GCC reports:
note: 'sprintf' output between 16 and 35 bytes into a destination of size 32
2022-02-20 11:14:54 +01:00
Rene Kita
cf7058b56c
Let base64_encode() take a char *
...
Throughout the whole code base only char * is passed, but a unsigned
char * is expected. This leads to several warnings.
Fix the interface and cast to unsigned char * internally to avoid any
changes to the behaviour.
2022-02-20 11:14:54 +01:00
Rene Kita
561f27f833
Explicitly cast to unsigned when passing to MD5()
2022-02-20 11:14:54 +01:00
Rene Kita
b25abc595c
Let strncpy write the null terminator
2022-02-20 11:14:53 +01:00
Rene Kita
0cd26b92cb
Take the correct char type in growbuf_append()
...
This change removes all warnings (-Wall) from this function.
2022-02-20 11:14:53 +01:00
Rene Kita
ab22479fb3
Fix warning for unused variable w/o MENU_SELECT
2022-02-20 11:14:53 +01:00
Rene Kita
4901408ea5
Fix warning for unused variable without USE_M17N
2022-02-20 11:14:53 +01:00
Rene Kita
916104b7f2
Remove unused variable
2022-02-20 11:14:53 +01:00
Rene Kita
dad5cbe83b
Use main(void) when not taking arguments
2022-02-20 11:14:53 +01:00
Rene Kita
84f724a590
Use standard conforming main() definition
2022-02-20 11:14:53 +01:00
Rene Kita
89295504fc
Suppress two warnings when compiling with tcc
...
While there, add some comments to better understand the code flow in
localcgi_post().
2022-02-20 11:14:53 +01:00
Rene Kita
f7601b4555
Move OPTS to end of CFLAGS
...
This allows the user to override default options.
2022-02-20 11:14:53 +01:00
Tatsuya Kinoshita
64c5cd449a
Update ChangeLog
2022-02-19 21:52:16 +09:00
Tatsuya Kinoshita
83df90dc11
Merge pull request #204 from kcwu/improve-fuzz-conv
...
Improve fuzz-conv fuzzer
2022-02-19 21:47:44 +09:00
Tatsuya Kinoshita
1e858d78af
Merge pull request #214 from N-R-K/fix_type_mismatch
...
fix wc_map_range_search() parameter type mismatch
2022-02-19 21:47:21 +09:00
Tatsuya Kinoshita
32c1ad1783
Merge pull request #218 from rkta/issue199
...
Check for end of string when parsing Gopher URLs
2022-02-19 21:46:11 +09:00
Rene Kita
ba29eb3fcf
Check for end of string when parsing Gopher URLs
...
This fixes issue #199 reported by Kuang-che Wu.
A specially crafted Gopher URL (e.g. '<a href=gopher:R>') could lead to
an out-of-bounds read.
Problem here was, that 'p' was incremented twice without checking for
the end of the string.
The interesting question for me is: What does this 'if' actually check?
What is special here about the 'R'? I did not find anything related in
RFC 1436 or in RFC 4266.
2022-02-17 12:46:07 +01:00
Tatsuya Kinoshita
53d323453d
Update ChangeLog
2022-02-17 00:27:20 +09:00
Tatsuya Kinoshita
1199fb1f36
Merge pull request #217 from rkta/issue200
...
Ignore tokens that look like HTML, but are not
2022-02-17 00:21:06 +09:00
Tatsuya Kinoshita
3924eb1d73
Merge pull request #215 from rkta/imlib2-config
...
Do not use imlib2-config
2022-02-17 00:20:29 +09:00
Rene Kita
9874c87ad1
Do not use imlib2-config
...
imlib2-config was dropped by Imlib2:
https://git.enlightenment.org/legacy/imlib2.git/commit/?id=e9d84bd2163e6fab494b5ce5cc8830a54ff97765
The fixes issue #213 .
2022-02-12 13:02:26 +01:00
Rene Kita
4d34f77a4b
Ignore tokens that look like HTML, but are not
...
This patch fixes issue 200 'heap-buffer-overflow in
shiftAnchorPosition'.
Any input that looks like a tag, but isn't, should just be ignored. HTML
is parsed in a two staged process. Stage 1 inserts internal tags (like
<a hseq=...>). Stage 2 assumes these internal tags are valid input
inserted in the previous stage. If we don't throw away non-valid HTML
tags in stage 1 any website can inject tags that are interpreted as
internal ones. This leads to an out-of-bound read in this test case.
The 'hseq=-90' from the input ends as the value (89 actually) of
'a->hseq' in 'anchor.c:555'. Then 'hl->marks[a->hseq]' is out of bounds
as there are only 30 entries in this list.
This is the test input:
<table>0<br <>0<xmp>È«<div><inteRnal><input_alt fid=0><dl>0<dl>0<button value='">0000000000000000000000000000000000000000ÿ000'><A hseq=-90 href=>0<hR align=middle>
2022-02-12 12:37:06 +01:00
NRK
d35241cdbe
fix wc_map_range_search() parameter type mismatch
...
caught by trying to compile on gcc with LTO enabled
2022-02-12 15:33:25 +06:00