Commit Graph

2357 Commits

Author SHA1 Message Date
Rene Kita
8df395e7a2 Refactor lessopen_stream
Use early returns to spare a level of indentation.
2023-01-04 13:59:13 +01:00
Tatsuya Kinoshita
7c233b6590 Update ChangeLog 2023-01-04 19:30:58 +09:00
Tatsuya Kinoshita
576d8580d9 Update PO strings 2023-01-04 19:29:45 +09:00
Tatsuya Kinoshita
b0940e8cec English fixes
cf. https://github.com/tats/w3m/pull/241
2023-01-04 19:18:46 +09:00
Tatsuya Kinoshita
d86a975061 Merge pull request #255 from rkta/fix_GH_action
Don't error out on deprecated declaration warnings
2023-01-04 19:17:29 +09:00
Tatsuya Kinoshita
57b6c8ecd1 Merge pull request #251 from nsanmartin/high-intensity-colors
Add high-intensity colors option and cli flag.
2023-01-04 19:16:58 +09:00
Tatsuya Kinoshita
b80737409b Merge pull request #241 from trafficone/master
Minor Fixes of English Docs
2023-01-04 19:16:19 +09:00
Rene Kita
7078c78443 Remove unused variable 2022-12-25 11:55:58 +01:00
Rene Kita
a2ce4d8ace Remove a warning for bzero with GCC 12
GCC 12.2.0 on Arch reports:
.table.c: In function ???set_table_matrix0???:
.table.c:3536:5: error: ???__builtin_memset??? specified size between
18446744071562067969 and 18446744073709551615 exceeds maximum object
size 9223372036854775807 [-Werror=stringop-overflow=]
lto1: all warnings being treated as errors
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
child exited with value 1
make: *** [Makefile:132: w3m] Error 1
2022-12-25 11:55:58 +01:00
Rene Kita
e6b8a4e250 Fix potential null pointer dereference
Found when compiling with '-O3 -flto'.
2022-12-25 11:55:58 +01:00
Rene Kita
9759579283 Don't error out on deprecated declaration warnings
The function `unsigned char *MD5(const unsigned char *d, size_t n,
unsigned char *md)` from OpenSSL is deprecated and therefore generates
lots of warnings in the build when compiling against OpenSSL 3.0.

Do not treat these warnings as errors, but keep the warning active. This
should be reverted once OpenSSL-3.0 support arrives.
2022-12-25 11:55:53 +01:00
Tatsuya Kinoshita
07a53f4d34 Update ChangeLog 2022-12-25 10:33:51 +09:00
Tatsuya Kinoshita
6c06bf1c0c Update configure with acinclude.m4 2022-12-25 10:32:42 +09:00
Tatsuya Kinoshita
584f3756d0 Merge pull request #248 from thesamesam/implicit-func-decls
acinclude.m4: fix configure tests broken with Clang 15 (implicit func…
2022-12-25 10:09:30 +09:00
Tatsuya Kinoshita
9724f060ef Merge pull request #246 from rokuyama/master
For sixel, no need to round image size to multiple of character size.
2022-12-25 10:08:48 +09:00
Tatsuya Kinoshita
954dfbb27b Merge pull request #245 from rokuyama/fix_osc5379
Display resized image for OSC 5379 (mlterm).
2022-12-25 10:08:31 +09:00
Tatsuya Kinoshita
c15b1aab53 Merge pull request #237 from rkta/siteconf_docs
Improve siteconf docs
2022-12-25 10:08:05 +09:00
Tatsuya Kinoshita
57380d6e19 Merge pull request #235 from rkta/retry_filename
Retry if loading of a file fails
2022-12-25 10:06:27 +09:00
Tatsuya Kinoshita
989b788269 Merge pull request #234 from N-R-K/testing
Fix -Wmissing-prototypes and -Wstrict-prototypes warnings
2022-12-25 10:05:43 +09:00
Tatsuya Kinoshita
f663d1f57f Merge pull request #228 from rkta/gh_action
Add GitHub Action to build source when pushing
2022-12-25 10:05:15 +09:00
Tatsuya Kinoshita
d5055e6171 Update ChangeLog 2022-12-21 20:42:58 +09:00
Tatsuya Kinoshita
f7c476f196 Update PO strings 2022-12-21 20:34:14 +09:00
Tatsuya Kinoshita
dff69f1281 Merge pull request #219 from rkta/add_option_for_temp_files
Add option to set directory for temporary files
2022-12-21 20:20:27 +09:00
Tatsuya Kinoshita
ba6b636154 Merge pull request #207 from yashlala/issue-130-xdg-dirs
Set `rc_dir` based on `W3M_DIR` environment variable.
2022-12-21 20:20:03 +09:00
Tatsuya Kinoshita
e8e30305a6 Update ChangeLog 2022-12-20 21:20:42 +09:00
Tatsuya Kinoshita
4d813002c3 Fix potential overflow in checkType 2022-12-20 21:16:53 +09:00
Tatsuya Kinoshita
419ca82d57 Fix m17n backspace handling causes out-of-bounds write in checkType
[CVE-2022-38223]
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019599
Bug-Debian: https://github.com/tats/w3m/issues/242
2022-12-20 21:16:48 +09:00
Trafficone
57dfbe309c Minor Fixes of English Docs (#1)
* Translating Documentation

* Create README.SSL from doc-jp

* Clarified wording on some functions

* Clarified English in README.img

* Created README.keymap

* Translated README.menu

* Minor grammar changes
2022-11-29 00:07:55 +09:00
nico
4922d25917 Add high-intensity colors option and cli flag. 2022-11-19 13:39:15 -03:00
Sam James
11fd7ffb21 acinclude.m4: fix configure tests broken with Clang 16 (implicit function declarations)
Clang 16 will make -Wimplicit-int and -Wimplicit-function-declaration
errors by default which can, in addition to other things, lead to
some configure tests silently failing/returning the wrong result.

For more information, see LWN.net [0] or LLVM's Discourse [1], gentoo-dev@ [2],
or the (new) c-std-porting mailing list [3].

[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
[3] hosted at lists.linux.dev.

Signed-off-by: Sam James <sam@gentoo.org>
2022-11-05 06:22:34 +00:00
Rin Okuyama
8d7db37efc For sixel, no need to round image size to multiple of character size.
With this fix combined with fix to libsixel:

https://github.com/saitoha/libsixel/pull/170

browsing on slow machines (e.g., when floating-point calculation is
emulated by kernel) gets significantly speed up.

Note that if i->cache->a_width (i->cache->a_height) is zero, width
(height) should be set to zero. Otherwise, image in screen boundary
(i.e., partially displayed) becomes strangely resized.
2022-09-02 21:07:11 +09:00
Rin Okuyama
01b8ac418b Display resized image for OSC 5379 (mlterm).
Previously, some images, e.g., Google logo on its top page, are not
displayed at all for OSC 5379 (mlterm).
2022-09-02 17:47:16 +09:00
Yash Lala
4c8f4f6cd9 Use Strnew_charp() to create char * instead of strdup(). 2022-06-03 17:04:07 -07:00
Yash Lala
f812275fe6 refactor: Substitute some clunky code with a strdup(). 2022-06-02 17:47:05 -07:00
Rene Kita
8f3fcecc43 Retry if loading of a file fails
This fixes GH issue #210, Debian BTS #537761[1] and obsoletes Debian
BTS #946440[2].

File names like 'a#a.html', 'b?b.html' or 'c%20.html' can not be opened
without using '-o argv_is_url=1' as the file name is interpreted as a
local URL.

If everything fails and argv_is_url is not set retry as a local file.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537761
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946440
2022-05-02 13:35:51 +02:00
Rene Kita
a2bd584934 Use the comment character in Examples 2022-05-01 12:04:23 +02:00
Rene Kita
b21b50b1dd Say what the comment character is 2022-05-01 12:04:23 +02:00
Rene Kita
4486ac99bc Add GitHub Action to build source when pushing
Let's at least ensure that the source builds without warnings.

The build image used, Ubuntu, spits out quite some warnings about
ignored return values. Use '-Wno-unused-result' for now.

The configure options are chosen to resemble the default Debian version.
2022-05-01 11:50:23 +02:00
Rene Kita
9192ed59db Add option to set directory for temporary files
With this patch applied the user can configure a directory to store
temporary/cache files. The history and cookies remain in RC_DIR.

I suppose the intent of writing the history to a temp file first is to
make the actual write an atomic operation. As rename() does not work
across mount points, we need to handle the temp file for the history
different to keep this behaviour.

Add a new type for the temp history file and handle this case different
when creating a temp file.
2022-05-01 11:50:09 +02:00
NRK
235241e5fc remove duplicate declaration 2022-04-29 20:18:11 +06:00
NRK
faeebc076c fix all -Wmissing-prototypes warnings 2022-04-29 15:59:13 +06:00
NRK
d9284b1193 fix some -Wstrict-prototypes warnings 2022-04-29 15:59:13 +06:00
Tatsuya Kinoshita
c515ea8a47 Update ChangeLog 2022-04-29 10:25:54 +09:00
Tatsuya Kinoshita
fecf81b2db Update NEWS for w3m 0.5.3+git20220429 2022-04-29 10:20:09 +09:00
Tatsuya Kinoshita
cf9ec99fe6 Update config.* with autotools-dev 20220109.1 2022-04-29 10:19:04 +09:00
Tatsuya Kinoshita
a1ae7a95f9 Update ChangeLog 2022-04-25 19:51:07 +09:00
Tatsuya Kinoshita
aa67e886c7 Merge pull request #231 from N-R-K/cppcheck_fixes
Cppcheck fixes
2022-04-25 19:49:34 +09:00
NRK
b155c9f759 check bound _before_ making access 2022-04-24 06:26:32 +06:00
NRK
b2ce5a9c54 ensure map isn't NULL
main.c:1460:22: warning: Possible null pointer dereference: map [nullPointer]
	    w3mFuncList[(int)map[c]].func();
	                     ^
	main.c:1503:24: note: Calling function 'escKeyProc', 3rd argument 'NULL' value is 0
	 escKeyProc((int)c, 0, NULL);
	                       ^
	main.c:1438:25: note: Assuming condition is Assuming condition is false
	    if (CurrentKey >= 0 && CurrentKey & K_MULTI) {
	                        ^
	main.c:1460:22: note: Null pointer dereference
	    w3mFuncList[(int)map[c]].func();
	                     ^
2022-04-24 06:17:44 +06:00
NRK
3ab68dd361 properly close va_list 2022-04-24 06:10:12 +06:00