aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add error handling code for fopenJia Zhouyang2018-03-041-2/+6
| | | Check the return value of fopen, and add proper error handling code.
* file.c: compute correct base URL when not absoluteKyle J. McKay2017-08-231-1/+1
| | | | | | | | | | | | | | | | When a server makes use of the PATH_INFO feature in a CGI, the returned pages may often have a <base href="..." /> tag specifying the URL of the CGI itself as the base. However, to avoid hard-coding the scheme and host into such a base href, the href value will often omit the scheme, host and port. Make sure that when parsing any such base href value that any omitted components are taken from the current URL rather than taken as being from a bare, absolute file:/// URL. Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
* Prevent heap-use-after-free read in HTMLlineproc0()Tatsuya Kinoshita2016-12-171-1/+1
| | | | Bug-Debian: https://github.com/tats/w3m/issues/81
* Prevent infinite loop in feed_textarea()Tatsuya Kinoshita2016-12-171-1/+3
| | | | Bug-Debian: https://github.com/tats/w3m/issues/85
* Prevent overflow beyond the end of string in caller of get_mclen()Tatsuya Kinoshita2016-12-151-1/+1
| | | | | | | | | | | 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
* Revert "Prevent overflow beyond the end of string in proc_mchar()"Tatsuya Kinoshita2016-12-151-6/+1
| | | | This reverts commit 512ed467d12615f5ef40d0d28272e5662d8438ea.
* Revert "Prevent overflow beyond the end of string in proc_mchar()"Tatsuya Kinoshita2016-12-151-6/+5
| | | | This reverts commit e79d0ec2a00369a6af24007a1f2bb5e876e2c847.
* Prevent overflow beyond the end of string in proc_mchar()Tatsuya Kinoshita2016-12-131-5/+6
| | | | | Bug-Debian: https://github.com/tats/w3m/issues/80 cf. https://github.com/tats/w3m/issues/59
* Prevent heap-use-after-free in HTMLlineproc0()Tatsuya Kinoshita2016-12-071-1/+2
| | | | Bug-Debian: https://github.com/tats/w3m/issues/65
* Prevent negative values for offset and pos in push_link()Tatsuya Kinoshita2016-12-071-2/+6
| | | | Bug-Debian: https://github.com/tats/w3m/issues/64
* Prevent overflow beyond the end of string in proc_mchar()Tatsuya Kinoshita2016-12-071-1/+6
| | | | Bug-Debian: https://github.com/tats/w3m/issues/59
* Prevent negative array index in process_textarea()Tatsuya Kinoshita2016-12-051-1/+1
| | | | Bug-Debian: https://github.com/tats/w3m/issues/58
* Prevent negative array index for marks in HTMLlineproc2body()Tatsuya Kinoshita2016-12-051-1/+1
| | | | Bug-Debian: https://github.com/tats/w3m/issues/61
* Prevent negative value of row for pushTable() in HTMLlineproc0()Tatsuya Kinoshita2016-12-051-0/+2
| | | | Bug-Debian: https://github.com/tats/w3m/issues/67
* Prevent negative array index in getMetaRefreshParam()Tatsuya Kinoshita2016-12-051-2/+3
| | | | Bug-Debian: https://github.com/tats/w3m/issues/63
* fix uninitialized variable in process_img(). fix #44Kuang-che Wu2016-11-271-1/+1
|
* Prevent deref null pointer in HTMLlineproc0()Tatsuya Kinoshita2016-11-171-5/+5
| | | | Bug-Debian: https://github.com/tats/w3m/issues/42
* Prevent infinite recursion with nested table and textareaTatsuya Kinoshita2016-11-151-0/+1
| | | | Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260590257
* Prevent null pointer deref due to bad form idTatsuya Kinoshita2016-11-141-1/+4
| | | | Bug-Debian: https://github.com/tats/w3m/issues/39
* Prevent array index out of bounds for symbolTatsuya Kinoshita2016-11-141-1/+1
| | | | Bug-Debian: https://github.com/tats/w3m/issues/38
* Prevent null pointer dereference in HTMLlineproc2body for textarea_intTatsuya Kinoshita2016-11-131-1/+1
| | | | Bug-Debian: https://github.com/tats/w3m/issues/32#issuecomment-260170163
* Prevent infinite recursion in HTMLlineproc0Tatsuya Kinoshita2016-11-071-8/+8
| | | | Bug-Debian: https://github.com/tats/w3m/issues/36
* Prevent crash after allocate string of negative sizeTatsuya Kinoshita2016-11-071-0/+6
| | | | Bug-Debian: https://github.com/tats/w3m/issues/33
* Prevent memory exhausted due to repeat appending "</table>"Tatsuya Kinoshita2016-11-061-0/+3
| | | | Bug-Debian: https://github.com/tats/w3m/issues/23
* Prevent null pointer dereference in HTMLlineproc2bodyTatsuya Kinoshita2016-11-061-1/+1
| | | | Bug-Debian: https://github.com/tats/w3m/issues/32
* Fix uninitialised values for <i> and <dd>Tatsuya Kinoshita2016-08-191-0/+6
| | | | Bug-Debian: https://github.com/tats/w3m/issues/16
* Revert "Fix uninitialised values for <i> and <dd>"Tatsuya Kinoshita2016-08-191-6/+0
| | | | | This reverts commit 0fba2f1a6eb6861206ad120a02af2643938082cd. cf. https://github.com/tats/w3m/commit/0fba2f1a6eb6861206ad120a02af2643938082cd#commitcomment-18703355
* Fix uninitialised values for <i> and <dd>Tatsuya Kinoshita2016-08-191-0/+6
| | | | Bug-Debian: https://github.com/tats/w3m/issues/16
* Prevent segfault with malformed input_altTatsuya Kinoshita2016-08-181-3/+3
| | | | Bug-Debian: https://github.com/tats/w3m/issues/18
* Prevent segfault with incorrect button typeTatsuya Kinoshita2016-08-171-0/+11
| | | | Bug-Debian: https://github.com/tats/w3m/issues/17
* Prevent segfault with incorrect form_int fidTatsuya Kinoshita2016-08-171-2/+3
| | | | Bug-Debian: https://github.com/tats/w3m/issues/15
* Prevent negative array index for selectnumber and textareanumberTatsuya Kinoshita2016-08-171-4/+4
| | | | Bug-Debian: https://github.com/tats/w3m/issues/12
* Truncate large values of table attributesTatsuya Kinoshita2016-08-161-0/+9
| | | | Bug-Debian: https://github.com/tats/w3m/issues/11
* Prevent segfault with malformed input typeTatsuya Kinoshita2016-08-081-4/+6
| | | | Bug-Debian: https://github.com/tats/w3m/issues/7
* Fix mistake of unescape spaces for _doFileCopyTatsuya Kinoshita2016-03-291-1/+1
| | | | cf. [w3m-dev-en 00751], [w3m-dev-en 00752] on 2002-06-09
* Do not use C99-style commentsTatsuya Kinoshita2015-09-061-3/+3
|
* Mitigate issue #16 found by @kcwuDavid Crosby2015-09-061-9/+11
|
* Remove unused valueDavid Crosby2015-08-111-1/+0
|
* Remove dead assignments flagged by Clang static analysisDavid Crosby2015-08-111-1/+0
|
* Fix resource leak in AuthDigestCredDavid Crosby2015-08-111-1/+3
|
* Initialise hidden_input to NULLRichard Quirk2015-07-251-1/+1
| | | | This prevents a possible use of garbage value on line 3017.
* use pclose for pipeRichard Quirk2015-07-251-1/+1
|
* New option "display_borders" to display 0 pixel table borders.Tatsuya Kinoshita2015-02-021-0/+2
| | | | cf. http://d.hatena.ne.jp/rubikitch/20101120
* Add -sixel option which supports image processing by img2sixel.Araki Ken2014-12-061-3/+3
|
* * file.c: nw and ni are rounded up instead of rounded off to show every ↵Araki Ken2014-12-061-2/+8
| | | | corner of images.
* * terms.c: Change time to wait for the response of "\x1b[14t\x1b[18t" from ↵Araki Ken2014-12-061-9/+16
| | | | | | | | | | 0.1 sec to 0.5 sec. * image.c: - clearImage() works. - Use cached image files created by w3m in getImage(). * file.c: Hack for alignment.
* Merge branch 'bug/refresh-url'Tatsuya Kinoshita2013-11-101-3/+3
|\
| * Add support for single quoted meta refresh URLPaul Boekholt2013-11-101-3/+3
| | | | | | | | Bug: https://sourceforge.net/p/w3m/patches/53/
* | Merge branch 'bug/win64gc'Tatsuya Kinoshita2013-10-141-25/+33
|\ \ | | | | | | | | | | | | | | | Conflicts: istream.c main.c
| * | Workaround of GC crash on Cygwin64AIDA Shinra2013-10-141-25/+33
| |/ | | | | | | | | Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-win64gc.patch>, [w3m-dev:04469] on 2013-10-14.