Files
coreutils/src
Jim Meyering d7bed21394 Fix to avoid a denial-of-service attack if the display width is
enormous.  Also, clean up the code a bit by removing duplicate code.

(init_column_info): Remove forward decl; no longer needed.
(calculate_columns): New function, that contains code that used
to be common to print_many_per_line and print_horizontal.
(print_many_per_line, print_horizontal): Use it.
(decode_switches): Set max_idx here, not in calculate_columns.
(print_current_files): Don't call init_column_info; calculate_columns
now does that.
(init_column_info): Don't allocate a lot more space than is needed
to represent the current set of files.  Allocate all the new
size_t cells in one call to xnmalloc, rather than a row at a time.
2003-10-14 09:09:43 +00:00
..
2003-09-18 22:23:09 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2000-11-26 23:10:55 +00:00
2003-09-18 22:19:03 +00:00
2003-01-04 10:34:59 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-03-26 18:47:49 +00:00
2002-12-15 20:54:29 +00:00
2003-10-08 18:24:04 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
1998-02-06 20:48:10 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-04-11 12:46:24 +00:00
2003-09-18 22:19:03 +00:00
2003-03-08 10:14:33 +00:00
2003-10-09 08:43:15 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
.
2003-05-28 18:07:17 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-07-06 06:08:40 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
2003-08-15 06:53:02 +00:00
.
2003-10-07 07:21:37 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-22 07:07:16 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-08 06:08:13 +00:00
2003-01-04 10:32:21 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-04-11 12:41:44 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-28 08:22:15 +00:00
2003-08-19 10:07:33 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2001-02-06 09:56:22 +00:00
2003-09-18 22:19:03 +00:00
2003-09-18 22:19:03 +00:00
2003-09-22 15:41:05 +00:00