util-linux/text-utils
Sami Kerola ec4153cc28
more: fix floating point exception core dump
Make the code avoid divided by zero.  This can happen when file has content
but is zero in size.  Such files can be found from procfs, possibly some
other pseudo-filesystems.  To reproduce the issue run the following.

    $ more /proc/crypto
    ...
    Floating point exception (core dumped)

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2021-05-19 20:23:48 +01:00
..
Makemodule.am build-sys: keep adoc files in dist_noinst_DATA 2021-05-05 13:35:30 +02:00
col.1.adoc build-sys: make man pages location independent 2021-03-31 11:50:47 +02:00
col.c text-utils: correctly detect ASan under clang 2021-02-01 11:59:47 +01:00
colcrt.1.adoc build-sys: make man pages location independent 2021-03-31 11:50:47 +02:00
colcrt.c colcrt: make seek to \n more robust 2019-09-02 11:53:10 +02:00
colrm.1.adoc build-sys: make man pages location independent 2021-03-31 11:50:47 +02:00
colrm.c colrm: fix argument parsing 2020-11-14 16:06:56 +00:00
column.1.adoc column: add placeholder '0' to specify all columns 2021-05-10 10:46:51 +02:00
column.c column: add placeholder '0' to specify all columns 2021-05-10 10:46:51 +02:00
hexdump-conv.c hexdump: fix typo, dcl instead of dc1 2020-03-09 10:54:28 +01:00
hexdump-display.c [clang-tidy] fix wrong *cmp usage 2020-04-20 13:21:00 -07:00
hexdump-parse.c hexdump: fix potential null pointer dereference warnings 2018-12-10 21:48:00 +00:00
hexdump.1.adoc hexdump: add "hd" program name to man page 2021-04-13 10:20:42 +02:00
hexdump.c hexdump: automatically use -C when called as hd 2020-07-23 12:23:56 +02:00
hexdump.h hexdump: add header file guards [lgtm scan] 2019-09-20 16:13:52 +02:00
line.1.adoc build-sys: make man pages location independent 2021-03-31 11:50:47 +02:00
line.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
meson.build meson: add second build system 2021-03-17 15:07:27 +01:00
more.1.adoc build-sys: make man pages location independent 2021-03-31 11:50:47 +02:00
more.c more: fix floating point exception core dump 2021-05-19 20:23:48 +01:00
pg.1.adoc build-sys: make man pages location independent 2021-03-31 11:50:47 +02:00
pg.c cast NULL to char * when using execl 2020-10-29 19:49:07 +02:00
rev.1.adoc build-sys: make man pages location independent 2021-03-31 11:50:47 +02:00
rev.c rev: report line on error 2020-03-04 13:20:56 +01:00
ul.1.adoc fix whitespace issue in ducumentation 2021-05-10 15:53:50 +02:00
ul.c ul: make set_column() zero check more obvious 2020-11-14 16:07:05 +00:00