From: Jim Meyering Date: Mon, 13 Oct 2003 15:28:36 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: COREUTILS-5_1_0~426 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12af30108d97421e80e7a03d4d8ccd9432ed18fd;p=platform%2Fupstream%2Fcoreutils.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index b43a0eb..3dcb746 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,34 @@ +2003-10-13 Paul Eggert + + Fix address-arithmetic bug in 'ls', reported by Georgi Guninski. + Remove several arbitrary limits on hosts where int cannot represent + all size_t values. + + * src/ls.c (struct bin_str.len, length_of_file_name_and_frills, indent, + nfiles, files_index, tabsize, line_length, struct column_info.line_len, + struct column_info.col_arr[0], max_idx): + Now size_t, not int. + (get_funky_string): Return bool indicating success, instead of + a negative count to indicate failure. Store number of columns + through new parameter OUTPUT_COUNT; that way, they can never + go negative. Change equals_end from int to bool. All uses + changed. + (struct column_info.valid_len): Now bool, not int. All uses changed. + (dired_dump_obstack, get_funky_string, clear_files, + extract_dirs_from_files, print_current_files, + print_many_per_line, print_horizontal, init_column_info, + put_indicator, length_of_file_name_and_frills, + print_with_commas): Use size_t, not int, for local variables + that count sizes. + (decode_switches): Decode sizes using xstrtoul, not xstrtol. + Check for TIOCGWINSZ returing negative values (or values greater + than SIZE_MAX!). + (visit_dir, main, parse_ls_color, queue_directory, add_ignore_pattern, + init_column_info): + Use xmalloc and xnmalloc, not XMALLOC. + (gobble_file): Use xnrealloc, not XREALLOC. + (print_color_indicator): Remove now-unnecessary cast to size_t. + 2003-10-12 Paul Eggert * tests/du/no-x: Change wording of diagnostic to match latest du.c. diff --git a/m4/ChangeLog b/m4/ChangeLog index b61edbc..c15b270 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2003-10-13 Paul Eggert + + * xalloc.m4: Import latest version from gnulib. + 2003-10-06 Jim Meyering * ftw.m4: Remove now-unused file.