Commit Graph

32 Commits

Author SHA1 Message Date
Rene Kita
6d1a8d44e2 Cast away a warning
strlen() takes a char *, but p is a unsigned char *.
2022-04-18 11:42:05 +02: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
Tatsuya Kinoshita
f70cacbbd7 Prevent unneeded memory allocation for language tags in libwc
cf. https://oss-fuzz.com/testcase-detail/6275874304425984
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31397
2021-03-23 19:02:12 +09:00
Tatsuya Kinoshita
b9c2432101 Prevent very long language tag in libwc
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32229
2021-03-23 01:44:59 +09:00
Tatsuya Kinoshita
2341cef6e9 Prevent index overflow due to tag_map in libwc
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31936
2021-03-11 19:34:53 +09:00
Tatsuya Kinoshita
defabca229 Prevent unintentional integer overflow in libwc 2021-02-28 16:16:08 +09:00
Tatsuya Kinoshita
7eb09ef06d Typo fix 2021-02-17 19:27:09 +09:00
Tatsuya Kinoshita
7b44362891 Remove .cvsignore 2020-09-15 20:23:16 +09:00
Tatsuya Kinoshita
00433f4ac2 Prevent overflow beyond the end of string in wtf_parse1()
Bug-Debian: https://github.com/tats/w3m/issues/68
2016-12-24 21:21:49 +09:00
Tatsuya Kinoshita
f51c0966a4 Revert "Prevent overflow beyond the end of string in wtf_parse1()"
This reverts commit 998b6f91d4.
Bug-Debian: https://github.com/tats/w3m/issues/86
cf. http://emacs-w3m.namazu.org/ml/msg12505.html
2016-12-24 14:20:35 +09:00
Tatsuya Kinoshita
c3a3305e03 Prevent overflow beyond the end of string for wtf to wcs macros
Bug-Debian: https://github.com/tats/w3m/issues/77
2016-12-16 00:44:49 +09:00
Tatsuya Kinoshita
922d6f7901 Revert "Prevent overflow beyond the end of string for wtf to wcs macros"
This reverts commit b4d27ba5cc.
2016-12-16 00:44:49 +09:00
Tatsuya Kinoshita
6eea841d3a Prevent overflow beyond the end of string in caller of get_mclen()
Bug-Debian: https://github.com/tats/w3m/issues/59
Bug-Debian: https://github.com/tats/w3m/issues/73
Bug-Debian: https://github.com/tats/w3m/issues/74
Bug-Debian: https://github.com/tats/w3m/issues/76
Bug-Debian: https://github.com/tats/w3m/issues/79
Bug-Debian: https://github.com/tats/w3m/issues/80
Bug-Debian: https://github.com/tats/w3m/issues/83
Bug-Debian: https://github.com/tats/w3m/issues/84
2016-12-16 00:44:44 +09:00
Tatsuya Kinoshita
7fbaf9444f Prevent overflow beyond the end of string in wtf_len()
cf. https://github.com/tats/w3m/issues/57
2016-12-10 22:54:14 +09:00
Tatsuya Kinoshita
998b6f91d4 Prevent overflow beyond the end of string in wtf_parse1()
Bug-Debian: https://github.com/tats/w3m/issues/68
2016-12-10 22:09:34 +09:00
Tatsuya Kinoshita
b4d27ba5cc Prevent overflow beyond the end of string for wtf to wcs macros
Bug-Debian: https://github.com/tats/w3m/issues/77
2016-12-10 18:18:47 +09:00
Tatsuya Kinoshita
a56a8ef132 Prevent overflow beyond the end of string in wtf_strwidth()
Bug-Debian: https://github.com/tats/w3m/issues/57
2016-12-08 01:00:42 +09:00
Tatsuya Kinoshita
295b1ef8f8 Revert "Prevent overflow beyond the end of string in wtf_strwidth()"
This reverts commit d345c0950d.
2016-12-08 00:54:42 +09:00
Tatsuya Kinoshita
d345c0950d Prevent overflow beyond the end of string in wtf_strwidth()
Bug-Debian: https://github.com/tats/w3m/issues/57
2016-12-07 21:19:28 +09:00
Tatsuya Kinoshita
88110c2658 Fix type mismatch for pcsw_ucs_map_size
cf. https://github.com/tats/w3m/issues/43
2016-11-18 23:25:04 +09:00
Tatsuya Kinoshita
716bc12663 Prevent global-buffer-overflow in wc_any_to_ucs()
Bug-Debian: https://github.com/tats/w3m/issues/43
2016-11-18 22:30:19 +09:00
Tatsuya Kinoshita
9cf6926c5d Prevent segfault when iso2022 parsing
Bug-Debian: https://github.com/tats/w3m/issues/14
2016-08-17 21:34:55 +09:00
Tatsuya Kinoshita
5a159af05d Fix segfault on bogus text for wc_N_to_johab1
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820373
2016-04-08 06:10:42 +09:00
Tatsuya Kinoshita
7bb2a46715 Fix segfault on bogus text
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820162
2016-04-07 06:42:55 +09:00
David Crosby
a58671905e Add missing comparision that made if always true 2015-08-11 21:59:27 +09:00
Scarlett
cbec7032ee Add overflow detection
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2

* main.c: Call exit(1) when out of memory to avoid dereferencing null
pointers when gc's malloc fails.

* alloc.h: Replacements for w3m's allocation macros which add
overflow detection and concentrate the macros in one file.

* indep.h, libwc/charset.c, libwc/status.c, matrix.c: Use the
overflow-detecting allocation macros from alloc.h.
2015-01-15 19:38:11 +09:00
Olaf Hering
fc754b42ec Fix a few harmless uninitialized variables
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-uninitialized.patch?expand=1
2014-12-06 17:18:49 +09:00
Tatsuya Kinoshita
d3143d6ddf Fix incorrect generation of ucs_ambwidth_map 2014-10-13 19:59:22 +09:00
Tatsuya Kinoshita
620796f8d7 Remove garbage files 2012-05-24 23:06:47 +09:00
Tatsuya Kinoshita
5397d09e58 Adding upstream version 0.5.3 2011-05-04 16:41:45 +09:00
Tatsuya Kinoshita
6db339b3d7 Adding upstream version 0.5.2 2011-05-04 16:23:02 +09:00
Tatsuya Kinoshita
72f72d64a4 Adding upstream version 0.5.1 2011-05-04 16:05:14 +09:00