commit c76f6cfcde2337656ae83e0b2a698409d8c7bcb8 Author: Sergey Cherevko Date: Tue May 21 15:37:12 2024 +0300 import indent-2.2.13-5.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93f9129 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/indent-2.2.13.tar.xz +SOURCES/indent-2.2.13.tar.xz.sig diff --git a/.indent.metadata b/.indent.metadata new file mode 100644 index 0000000..a8a5bc9 --- /dev/null +++ b/.indent.metadata @@ -0,0 +1,2 @@ +a79af00abd1ae72f53eec967ecc83a017013657f SOURCES/indent-2.2.13.tar.xz +63835dd5566cd188b56c274c4d08353a10b92e10 SOURCES/indent-2.2.13.tar.xz.sig diff --git a/SOURCES/indent-2.2.13-Check-for-setlocale-function.patch b/SOURCES/indent-2.2.13-Check-for-setlocale-function.patch new file mode 100644 index 0000000..f4e6356 --- /dev/null +++ b/SOURCES/indent-2.2.13-Check-for-setlocale-function.patch @@ -0,0 +1,40 @@ +From 3734443b661799b8fa893d4379be62cd1ce96ae0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Wed, 12 Apr 2023 12:43:23 +0200 +Subject: [PATCH] Check for setlocale() function +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +After modernizing configure.ac, setlocale() stopped to be checked, +HAVE_SETLOCALE defined, and setlocale() called from main(). As +a result indent-2.2.13 stopped printing localized messages. + +This patch fixes it. + +I checked all HAVE_ macros for their configure-time checks. +HAVE_SETLOCALE was the only missing. + + + +Signed-off-by: Petr Písař +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 92b612d..85f4383 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -48,7 +48,7 @@ AC_SUBST(localedir) + AC_CHECK_INCLUDES_DEFAULT + AC_PROG_EGREP + +-AC_CHECK_FUNCS(strchr memcpy memmove utime) ++AC_CHECK_FUNCS(setlocale strchr memcpy memmove utime) + AC_CHECK_HEADERS(unistd.h string.h malloc.h utime.h sys/utime.h) + + if test "$ac_cv_func_utime" = yes +-- +2.40.0 + diff --git a/SOURCES/indent-2.2.13-Fix-a-heap-buffer-overwrite-in-search_brace-CVE-2023.patch b/SOURCES/indent-2.2.13-Fix-a-heap-buffer-overwrite-in-search_brace-CVE-2023.patch new file mode 100644 index 0000000..e849759 --- /dev/null +++ b/SOURCES/indent-2.2.13-Fix-a-heap-buffer-overwrite-in-search_brace-CVE-2023.patch @@ -0,0 +1,4249 @@ +From 61b6e7d6496052a1c04f29ade66921217554bfeb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 15 Aug 2023 19:00:56 +0200 +Subject: [PATCH 2/2] Fix a heap buffer overwrite in search_brace() + (CVE-2023-40305) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +If there was a comment between if-condition and an statement opening +bracket and the comment size aligned to an indent-internal 1024 B +buffer for comments, indent attempted to write into a nonallocated +memory on heap. + +$ hexdump -C /tmp/write1 +00000000 69 66 20 30 3b 65 6c 73 65 2f 2a 0a 0a 0a 0a 0a |if 0;else/*.....| +00000010 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a |................| +* +00000800 0a 0a 0a 0a 2a 2f 7b 0a |....*/{.| +00000808 + +$ valgrind -- ./indent -o /dev/null /tmp/write1 2>&1 | head -n 23 +==26345== Memcheck, a memory error detector +==26345== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. +==26345== Using Valgrind-3.21.0 and LibVEX; rerun with -h for copyright info +==26345== Command: ./indent -o /dev/null /tmp/write1 +==26345== +==26345== Invalid write of size 1 +==26345== at 0x401558: search_brace (indent.c:232) +==26345== by 0x401CB2: indent_main_loop (indent.c:548) +==26345== by 0x402288: indent (indent.c:758) +==26345== by 0x402931: indent_single_file (indent.c:1003) +==26345== by 0x4029FF: indent_all (indent.c:1041) +==26345== by 0x402BA6: main (indent.c:1122) +==26345== Address 0x4aa7830 is 0 bytes after a block of size 2,048 alloc'd +==26345== at 0x4847A40: realloc (vg_replace_malloc.c:1649) +==26345== by 0x408BA1: xrealloc (globs.c:64) +==26345== by 0x40BEE4: need_chars (handletoken.c:89) +==26345== by 0x401686: search_brace (indent.c:281) +==26345== by 0x401CB2: indent_main_loop (indent.c:548) +==26345== by 0x402288: indent (indent.c:758) +==26345== by 0x402931: indent_single_file (indent.c:1003) +==26345== by 0x4029FF: indent_all (indent.c:1041) +==26345== by 0x402BA6: main (indent.c:1122) + +The cause was that the buffer was exhausted by the comment text and no +space left for the following new-line and curly bracket characters. + +This patch fixes it by enlarging the buffer two fit these two +additional characters. + + + +Signed-off-by: Petr Písař +--- + regression/TEST | 44 +- + regression/input/comment-heap-overwrite.c | 2042 ++++++++++++++++ + regression/standard/comment-heap-overwrite.c | 2044 +++++++++++++++++ + .../standard/comment-heap-overwrite.err | 1 + + src/indent.c | 1 + + 5 files changed, 4111 insertions(+), 21 deletions(-) + create mode 100644 regression/input/comment-heap-overwrite.c + create mode 100644 regression/standard/comment-heap-overwrite.c + create mode 100644 regression/standard/comment-heap-overwrite.err + +diff --git a/regression/TEST b/regression/TEST +index 0933e9b..fbde72f 100755 +--- a/regression/TEST ++++ b/regression/TEST +@@ -429,6 +429,7 @@ echo Testing new comment stuff...Done. + + + echo Testing bad code handling.... ++ERR=output/errors + + # print_comment() was reading past the end of the buffer... + echo -ne '/*' | $INDENT -npro -st > /dev/null 2>&1 +@@ -446,29 +447,30 @@ then + echo >> $ERR + fi + +-# This ends in a error from indent but it shouldn't coredump. +-$INDENT -npro input/bug206785.c -o output/bug206785.c 2>output/bug206785.err ++# This ends in an error from indent but it shouldn't coredump. ++for TEST in bug206785 comment-heap-overwrite; do ++ $INDENT -npro input/"$TEST".c -o output/"$TEST".c 2>output/"$TEST".err + +-if [ $? -ne 2 ] +-then +- printf ERROR: bad return status from indent. | tee -a $ERR +- echo >> $ERR +-fi +-cd output ++ if [ $? -ne 2 ] ++ then ++ printf "ERROR: bad return status from indent for %s.c" "$TEST" | tee -a $ERR ++ echo >> $ERR ++ fi + +-for i in bug206785.c bug206785.err +-do +- printf ...$i... +- diff --initial-tab ../standard/$i $i > $i-diffs 2>&1 +- if [ -s $i-diffs ] +- then +- printf ERROR: $i failed | tee -a $ERR +- echo >> $ERR +- else +- rm $i-diffs +- rm $i +- fi +- echo ++ for i in "$TEST".c "$TEST".err ++ do ++ printf "...%s..." "$i" ++ diff --initial-tab standard/"$i" output/"$i" > output/"$i"-diffs 2>&1 ++ if [ -s output/"$i"-diffs ] ++ then ++ printf "ERROR: %s failed" "$i" | tee -a $ERR ++ echo >> $ERR ++ else ++ rm output/"$i"-diffs ++ rm output/"$i" ++ fi ++ echo ++ done + done + + echo Testing bad code handling...Done. +diff --git a/regression/input/comment-heap-overwrite.c b/regression/input/comment-heap-overwrite.c +new file mode 100644 +index 0000000..5b1ca6a +--- /dev/null ++++ b/regression/input/comment-heap-overwrite.c +@@ -0,0 +1,2042 @@ ++if 0;else/* ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++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++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++*/{ +diff --git a/regression/standard/comment-heap-overwrite.c b/regression/standard/comment-heap-overwrite.c +new file mode 100644 +index 0000000..8650d51 +--- /dev/null ++++ b/regression/standard/comment-heap-overwrite.c +@@ -0,0 +1,2044 @@ ++if 0; ++else /* ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 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++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ */ ++ { +diff --git a/regression/standard/comment-heap-overwrite.err b/regression/standard/comment-heap-overwrite.err +new file mode 100644 +index 0000000..fa571c8 +--- /dev/null ++++ b/regression/standard/comment-heap-overwrite.err +@@ -0,0 +1 @@ ++indent: input/comment-heap-overwrite.c:2044: Error:Unexpected end of file +diff --git a/src/indent.c b/src/indent.c +index 3f9ffc9..ef4f1ef 100644 +--- a/src/indent.c ++++ b/src/indent.c +@@ -228,6 +228,7 @@ static BOOLEAN search_brace( + * a `dump_line' call, thus ensuring that the brace + * will go into the right column. */ + ++ need_chars (&save_com, 2); + *save_com.end++ = EOL; + *save_com.end++ = '{'; + save_com.len += 2; +-- +2.41.0 + diff --git a/SOURCES/indent-2.2.13-Fix-a-heap-buffer-underread-in-set_buf_break.patch b/SOURCES/indent-2.2.13-Fix-a-heap-buffer-underread-in-set_buf_break.patch new file mode 100644 index 0000000..3866edf --- /dev/null +++ b/SOURCES/indent-2.2.13-Fix-a-heap-buffer-underread-in-set_buf_break.patch @@ -0,0 +1,119 @@ +From 32df891141689ed73499f4e60f64268957f1e3c2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Wed, 24 Jan 2024 14:03:58 +0100 +Subject: [PATCH] Fix a heap buffer underread in set_buf_break() +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +If an opening parenthesis follows a comment with a text, a read from +an invalid address happens in set_buf_break(): + + $ printf '/*a*/()' | valgrind -- ./src/indent - -o /dev/null + ==28887== Memcheck, a memory error detector + ==28887== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. + ==28887== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info + ==28887== Command: ./src/indent - -o /dev/null + ==28887== + ==28887== Invalid read of size 2 + ==28887== at 0x409989: set_buf_break (output.c:319) + ==28887== by 0x401FE7: indent_main_loop (indent.c:640) + ==28887== by 0x4022A7: indent (indent.c:759) + ==28887== by 0x40294E: indent_single_file (indent.c:1004) + ==28887== by 0x402A1C: indent_all (indent.c:1042) + ==28887== by 0x402BD0: main (indent.c:1123) + ==28887== Address 0x4a5facc is 4 bytes before a block of size 16 alloc'd + ==28887== at 0x4849E60: calloc (vg_replace_malloc.c:1595) + ==28887== by 0x408B61: xmalloc (globs.c:42) + ==28887== by 0x40765E: init_parser (parse.c:73) + ==28887== by 0x402B1F: main (indent.c:1101) + +It happens when checking an indentation level of the outer scope by indexing +parser_state_tos->paren_indents[]: + + level = parser_state_tos->p_l_follow; + [...] + /* Did we just parse a bracket that will be put on the next line + * by this line break? */ + if ((*token == '(') || (*token == '[')) + --level; /* then don't take it into account */ + [...] + if (level == 0) { + } else { +→ if (parser_state_tos->paren_indents[level - 1] < 0) {...} + } + +The cause is a special case for moving opening parentheses and +brackets to a next line. If parser_state_tos->p_l_follow is zero +(like in the reproducer), the index evaluates to -2 and goes out of +range of the paren_indents array. + +This patch simply prevents from decreasing the index under zero when +formating the code. Maybe it leaves some piece of code unformated, but +it's safe. + +I checked all places where p_l_follow is set (it is only in +handletoken.c) and they corretly prevent from decrasing it under +zero. That keeps set_buf_break() in output.c as the culprit. + + + +Signed-off-by: Petr Písař +--- + regression/TEST | 2 +- + regression/input/comment-parent-heap-underread.c | 3 +++ + regression/standard/comment-parent-heap-underread.c | 5 +++++ + src/output.c | 2 +- + 4 files changed, 10 insertions(+), 2 deletions(-) + create mode 100644 regression/input/comment-parent-heap-underread.c + create mode 100644 regression/standard/comment-parent-heap-underread.c + +diff --git a/regression/TEST b/regression/TEST +index 7c07c2e..951b1a2 100755 +--- a/regression/TEST ++++ b/regression/TEST +@@ -40,7 +40,7 @@ BUGS="case-label.c one-line-1.c one-line-2.c one-line-3.c \ + macro.c enum.c elif.c nested.c wrapped-string.c minus_predecrement.c \ + bug-gnu-33364.c float-constant-suffix.c block-comments.c \ + no-forced-nl-in-block-init.c hexadecimal_float.c binary-constant.c \ +- comment-heap-overread.c" ++ comment-heap-overread.c comment-parent-heap-underread.c" + + INDENTSRC="args.c backup.h backup.c dirent_def.h globs.c indent.h \ + indent.c indent_globs.h io.c lexi.c memcpy.c parse.c pr_comment.c \ +diff --git a/regression/input/comment-parent-heap-underread.c b/regression/input/comment-parent-heap-underread.c +new file mode 100644 +index 0000000..68e13cf +--- /dev/null ++++ b/regression/input/comment-parent-heap-underread.c +@@ -0,0 +1,3 @@ ++void foo(void) { ++/*a*/(1); ++} +diff --git a/regression/standard/comment-parent-heap-underread.c b/regression/standard/comment-parent-heap-underread.c +new file mode 100644 +index 0000000..9a1c6e3 +--- /dev/null ++++ b/regression/standard/comment-parent-heap-underread.c +@@ -0,0 +1,5 @@ ++void ++foo (void) ++{ ++/*a*/ (1); ++} +diff --git a/src/output.c b/src/output.c +index ee01bcc..17eee6e 100644 +--- a/src/output.c ++++ b/src/output.c +@@ -290,7 +290,7 @@ void set_buf_break ( + /* Did we just parse a bracket that will be put on the next line + * by this line break? */ + +- if ((*token == '(') || (*token == '[')) ++ if (level > 0 && ((*token == '(') || (*token == '['))) + { + --level; /* then don't take it into account */ + } +-- +2.43.0 + diff --git a/SOURCES/indent-2.2.13-Fix-an-out-of-buffer-read-in-search_brace-lexi-on-an.patch b/SOURCES/indent-2.2.13-Fix-an-out-of-buffer-read-in-search_brace-lexi-on-an.patch new file mode 100644 index 0000000..da53bf4 --- /dev/null +++ b/SOURCES/indent-2.2.13-Fix-an-out-of-buffer-read-in-search_brace-lexi-on-an.patch @@ -0,0 +1,4191 @@ +From d091dae6b9080859cd47b85fc0a73e572d40d9be Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 15 Aug 2023 14:09:06 +0200 +Subject: [PATCH 1/2] Fix an out-of-buffer read in search_brace()/lexi() on an + condition without parentheses followed with an overlong comment +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Reproducer: + +$ hexdump -C /tmp/short +00000000 69 66 20 30 3b 65 6c 73 65 2f 2a 0a 0a 0a 0a 0a |if 0;else/*.....| +00000010 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a |................| +* +00000800 0a 0a 2a 2f 78 0a |..*/x.| +00000806 + +$ valgrind -- ./indent -o /dev/null /tmp/short +[...] +==21830== Invalid read of size 1 +==21830== at 0x40586A: lexi (lexi.c:251) +==21830== by 0x40198C: search_brace (indent.c:387) +==21830== by 0x401CC2: indent_main_loop (indent.c:548) +==21830== by 0x402298: indent (indent.c:758) +==21830== by 0x402941: indent_single_file (indent.c:1003) +==21830== by 0x402A0F: indent_all (indent.c:1041) +==21830== by 0x402BC5: main (indent.c:1122) +==21830== Address 0x4ab2210 is 0 bytes inside a block of size 2,048 free'd +==21830== at 0x4847A40: realloc (vg_replace_malloc.c:1649) +==21830== by 0x408BC0: xrealloc (globs.c:64) +==21830== by 0x40BF03: need_chars (handletoken.c:89) +==21830== by 0x401433: sw_buffer (indent.c:149) +==21830== by 0x401973: search_brace (indent.c:380) +==21830== by 0x401CC2: indent_main_loop (indent.c:548) +==21830== by 0x402298: indent (indent.c:758) +==21830== by 0x402941: indent_single_file (indent.c:1003) +==21830== by 0x402A0F: indent_all (indent.c:1041) +==21830== by 0x402BC5: main (indent.c:1122) +==21830== Block was alloc'd at +==21830== at 0x4847A40: realloc (vg_replace_malloc.c:1649) +==21830== by 0x408BC0: xrealloc (globs.c:64) +==21830== by 0x40BF03: need_chars (handletoken.c:89) +==21830== by 0x401696: search_brace (indent.c:281) +==21830== by 0x401CC2: indent_main_loop (indent.c:548) +==21830== by 0x402298: indent (indent.c:758) +==21830== by 0x402941: indent_single_file (indent.c:1003) +==21830== by 0x402A0F: indent_all (indent.c:1041) +==21830== by 0x402BC5: main (indent.c:1122) + +The cause was that need_chars(&save_com, ...) could reallocate save_com.ptr +pointer keeping a dangling copy of that pointer saved to buf_ptr +a line above. + +Related to CVE-2023-40305 + +Signed-off-by: Petr Písař +--- + regression/TEST | 3 +- + regression/input/comment-heap-overread.c | 2040 ++++++++++++++++++ + regression/standard/comment-heap-overread.c | 2042 +++++++++++++++++++ + src/indent.c | 2 +- + 4 files changed, 4085 insertions(+), 2 deletions(-) + create mode 100644 regression/input/comment-heap-overread.c + create mode 100644 regression/standard/comment-heap-overread.c + +diff --git a/regression/TEST b/regression/TEST +index 37d0664..0933e9b 100755 +--- a/regression/TEST ++++ b/regression/TEST +@@ -39,7 +39,8 @@ BUGS="case-label.c one-line-1.c one-line-2.c one-line-3.c \ + one-line-4.c struct-decl.c sizeof-in-while.c line-break-comment.c \ + macro.c enum.c elif.c nested.c wrapped-string.c minus_predecrement.c \ + bug-gnu-33364.c float-constant-suffix.c block-comments.c \ +- no-forced-nl-in-block-init.c hexadecimal_float.c binary-constant.c" ++ no-forced-nl-in-block-init.c hexadecimal_float.c binary-constant.c \ ++ comment-heap-overread.c" + + INDENTSRC="args.c backup.h backup.c dirent_def.h globs.c indent.h \ + indent.c indent_globs.h io.c lexi.c memcpy.c parse.c pr_comment.c \ +diff --git a/regression/input/comment-heap-overread.c b/regression/input/comment-heap-overread.c +new file mode 100644 +index 0000000..5b0b172 +--- /dev/null ++++ b/regression/input/comment-heap-overread.c +@@ -0,0 +1,2040 @@ ++if 0;else/* ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++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++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++*/x +diff --git a/regression/standard/comment-heap-overread.c b/regression/standard/comment-heap-overread.c +new file mode 100644 +index 0000000..e601fb4 +--- /dev/null ++++ b/regression/standard/comment-heap-overread.c +@@ -0,0 +1,2042 @@ ++if 0; ++else /* ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 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++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ */ ++ x +diff --git a/src/indent.c b/src/indent.c +index fc69974..3f9ffc9 100644 +--- a/src/indent.c ++++ b/src/indent.c +@@ -145,8 +145,8 @@ static void sw_buffer(void) + parser_state_tos->search_brace = false; + bp_save = buf_ptr; + be_save = buf_end; +- buf_ptr = save_com.ptr; + need_chars (&save_com, 1); ++ buf_ptr = save_com.ptr; + buf_end = save_com.end; + save_com.end = save_com.ptr; /* make save_com empty */ + } +-- +2.41.0 + diff --git a/SOURCES/indent-2.2.13.tar.xz b/SOURCES/indent-2.2.13.tar.xz new file mode 100644 index 0000000..4ea03be Binary files /dev/null and b/SOURCES/indent-2.2.13.tar.xz differ diff --git a/SOURCES/indent-2.2.13.tar.xz.sig b/SOURCES/indent-2.2.13.tar.xz.sig new file mode 100644 index 0000000..103b630 Binary files /dev/null and b/SOURCES/indent-2.2.13.tar.xz.sig differ diff --git a/SOURCES/key.pgp b/SOURCES/key.pgp new file mode 100644 index 0000000..8d19000 Binary files /dev/null and b/SOURCES/key.pgp differ diff --git a/SPECS/indent.spec b/SPECS/indent.spec new file mode 100644 index 0000000..c3ba9da --- /dev/null +++ b/SPECS/indent.spec @@ -0,0 +1,495 @@ +Summary: A GNU program for formatting C code +Name: indent +Version: 2.2.13 +Release: 5%{?dist} +# COPYING: GPL-3.0 text +# doc/indent.texi: Latex2e-translated-notice +# (AND a subset of Latex2e WITH a texinfo-commented GPL clause; +# Fedora legal recommends to ignore this subset +# +# ) +# AND BSD-4.3TAHOE +# (BSD-4.3TAHOE refers to indent program, not +# the manual) +# README.md: "See COPYING" +# src/args.c: BSD-3-Clause AND GPL-3.0-or-later +# src/args.h: BSD-3-Clause +# src/backup.c: BSD-3-Clause +# src/backup.h: BSD-3-Clause +# src/code_io.c: BSD-3-Clause +# src/code_io.h: BSD-3-Clause AND GPL-3.0-or-later +# src/comments.c: GPL-3.0-or-later +# src/comments.h: GPL-3.0-or-later +# src/globs.c: GPL-3.0-or-later +# src/handletoken.c: BSD-3-Clause +# src/indent.c: BSD-3-Clause +# src/indent.h: BSD-3-Clause +# src/lexi.c: BSD-3-Clause +# src/lexi.h: GPL-3.0-or-later +# src/output.c: BSD-3-Clause AND GPL-3.0-or-later +# src/parse.c: BSD-3-Clause AND GPL-3.0-or-later +# src/parse.h: BSD-3-Clause AND GPL-3.0-or-later +# src/sys.h: BSD-3-Clause AND GPL-3.0-or-later +# src/utils.c: GPL-3.0-or-later +# src/utils.h: GPL-3.0-or-later +# src/wildexp.c: BSD-3-Clause AND GPL-3.0-or-later +## Used at build time, but not in any binary package +# man/texinfo2man.c: BSD-4.3TAHOE subset +# regression/input/args.c: BSD-4.3TAHOE +# regression/input/backup.c: FSFUL-like +# regression/input/backup.h: FSFUL-like +# regression/input/comments1.c: BSD-4.3TAHOE +# regression/input/globs.c: BSD-4.3TAHOE +# regression/input/indent.c: BSD-4.3TAHOE +# regression/input/indent.h: BSD-4.3TAHOE +# regression/input/indent_globs.h: BSD-4.3TAHOE +# regression/input/io.c: BSD-4.3TAHOE +# regression/input/lexi.c: BSD-4.3TAHOE +# regression/input/parse.c: BSD-4.3TAHOE +# regression/input/pr_comment.c: BSD-4.3TAHOE +# regression/input/sys.h: FSFUL-like +# regression/standard/args.c: BSD-4.3TAHOE +# regression/standard/backup.c: FSFUL-like +# regression/standard/backup.h: FSFUL-like +# regression/standard/comments1.c: BSD-4.3TAHOE +# regression/standard/comments1-fca.c: BSD-4.3TAHOE +# regression/standard/globs.c: BSD-4.3TAHOE +# +# regression/standard/indent.h: BSD-4.3TAHOE +# regression/standard/indent_globs.h: BSD-4.3TAHOE +# regression/standard/io.c: BSD-4.3TAHOE +# regression/standard/lexi.c: BSD-4.3TAHOE +# regression/standard/parse.c: BSD-4.3TAHOE +# regression/standard/pr_comment.c: BSD-4.3TAHOE +# regression/standard/sys.h: FSFUL-like +## Unused +# config/texinfo.tex: GPL-3.0-or-later WITH Texinfo exception +# INSTALL: FSFAP +## Unbundled +# doc/indent.info: (A subset of Latex2e; +# Fedora legal recommends to ignore it) +# AND BSD-4.3TAHOE +# (BSD-4.3TAHOE refers to indent program, not +# the manual) +# (generated from doc/indent.texi) +# aclocal.m4: FSFULLRWD AND FSFULLR +# config/config.guess: GPL-3.0-or-later WITH Autoconf-exception-generic +# config/missing: GPL-2.0-or-later WITH Autoconf-exception-generic +# config/compile: GPL-2.0-or-later WITH Autoconf-exception-generic +# config/config.rpath: FSFULLR +# config/config.sub: GPL-3.0-or-later WITH Autoconf-exception-generic +# config/depcomp: GPL-2.0-or-later WITH Autoconf-exception-generic +# config/install-sh: X11 AND LicenseRef-Fedora-Public-Domain +# config/mdate-sh: GPL-2.0-or-later WITH Autoconf-exception-generic +# configure: FSFUL +# doc/Makefile.in: FSFULLRWD +# m4/ax_cc_for_build.m4: GPL-3.0-or-later WITH Autoconf-exception-macro +# m4/gettext.m4: FSFULLR +# m4/iconv.m4: FSFULLR +# m4/intlmacosx.m4: FSFULLR +# m4/lib-ld.m4: FSFULLR +# m4/lib-link.m4: FSFULLR +# m4/lib-prefix.m4: FSFULLR +# m4/nls.m4: FSFULLR +# m4/po.m4: FSFULLR +# m4/progtest.m4: FSFULLR +# Makefile.in: FSFULLRWD +# man/indent.1: A subset of Latex2e AND "see oqindent.texinfo and indent.info" +# (generated from doc/indent.texi and man/indent.1.in) +# man/Makefile.in: FSFULLRWD +# po/Makefile.in.in: FSFUL-like +# src/Makefile.in: FSFULLRWD +License: GPL-3.0-or-later AND BSD-3-Clause AND BSD-4.3TAHOE AND Latex2e-translated-notice +URL: https://www.gnu.org/software/%{name}/ +Source0: https://ftpmirror.gnu.org/%{name}/%{name}-%{version}.tar.xz +Source1: https://ftpmirror.gnu.org/%{name}/%{name}-%{version}.tar.xz.sig +# A fingerprint verified from +# and +# . +Source2: https://shadura.me/key.pgp +# Check for setlocale() at configure time, proposed to an upstream, +# . +Patch0: indent-2.2.13-Check-for-setlocale-function.patch +# Fix a heap overread in search_brace/lexi, in upstream after 2.2.13, +# +Patch1: indent-2.2.13-Fix-an-out-of-buffer-read-in-search_brace-lexi-on-an.patch +# Fix CVE-2023-40305 (a heap buffer overwrite in search_brace), bug #2231919, +# in upstream after 2.2.13, +Patch2: indent-2.2.13-Fix-a-heap-buffer-overwrite-in-search_brace-CVE-2023.patch +# Fix CVE-2024-0911 (a heap buffer underread in set_buf_break()), +# bug #2259883, in upstream after 2.2.13, +# +Patch3: indent-2.2.13-Fix-a-heap-buffer-underread-in-set_buf_break.patch +BuildRequires: autoconf2.7x >= 2.71 +# autoconf-archive for unbundled ax_cc_for_build.m4 +BuildRequires: autoconf-archive +BuildRequires: automake +BuildRequires: coreutils +# dvips is not used +# egrep is not used +BuildRequires: gcc +BuildRequires: gettext-devel >= 0.18.3 +BuildRequires: gnupg2 +# gperf to update pre-generated code to fix compiler warnings +BuildRequires: gperf +BuildRequires: make +BuildRequires: texinfo +BuildRequires: texi2html + +%description +Indent is a GNU program for beautifying C code, so that it is easier to +read. Indent can also convert from one C writing style to a different +one. Indent understands correct C syntax and tries to handle incorrect +C syntax. + +Install the indent package if you are developing applications in C and +you want a program to format your code. + +%prep +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%autosetup -p1 +# Regenerate sources +rm src/gperf.c src/gperf-cc.c +# Regenerate documentation and translatations +rm man/indent.1 doc/indent.info po/*.gmo po/stamp-po +# Remove bundled and pregenerated build scripts +rm -r aclocal.m4 config configure m4 {,doc/,src/,man/}Makefile.in \ + po/Makefile.in.in po/*.sed po/*.sin po/Rules-quot + +%build +autoreconf27 -i -f +%configure \ + --enable-largefile \ + --enable-nls \ + --disable-rpath +%{make_build} + +%install +%{make_install} +# Delete HTML version of the manual. We already package roff and texinfo +# variants. +rm -f %{buildroot}%{_infodir}/dir %{buildroot}%{_bindir}/texinfo2man \ + %{buildroot}%{_datadir}/doc/indent/indent.html +%find_lang %name + +%check +make check %{?_smp_mflags} + +%files -f %{name}.lang +%license COPYING +%doc AUTHORS NEWS README.md ChangeLog* +%{_bindir}/indent +%{_mandir}/man1/indent.* +%{_infodir}/indent.info* + +%changelog +* Tue May 21 2024 Sergey Cherevko - 2.2.13-5 +- Rebuilt for MSVSphere 9.4 + +* Wed Jan 24 2024 Petr Pisar - 2.2.13-5 +- Fix CVE-2024-0911 (a heap buffer underread in set_buf_break()) (bug #2259883) + +* Wed Aug 16 2023 Petr Pisar - 2.2.13-4 +- Fix a heap overread in search_brace/lexi +- Fix CVE-2023-40305 (a heap buffer overwrite in search_brace) (bug #2231919) + +* Mon Apr 17 2023 Petr Pisar - 2.2.13-3 +- Correct a license to "GPL-3.0-or-later AND BSD-3-Clause AND BSD-4.3TAHOE AND + Latex2e-translated-notice" + +* Wed Apr 12 2023 Petr Pisar - 2.2.13-2 +- Check for setlocale() at configure time + +* Tue Mar 21 2023 Petr Pisar - 2.2.13-1 +- 2.2.13 bump + +* Thu Jul 21 2022 Fedora Release Engineering - 2.2.12-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 2.2.12-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 2.2.12-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2.2.12-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.2.12-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 2.2.12-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 2.2.12-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Petr Pisar - 2.2.12-3 +- Correct invoking tests at build time +- Recognize binary integer literals (bug #1655319) + +* Fri Feb 01 2019 Fedora Release Engineering - 2.2.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Sep 11 2018 Petr Pisar - 2.2.12-1 +- 2.2.12 bump +- License corrected to from "GPLv3+" to "GPLv3+ and BSD and Verbatim" + +* Fri Jul 13 2018 Fedora Release Engineering - 2.2.11-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 18 2018 Petr Pisar - 2.2.11-25 +- Remove install-info from scriptlets + +* Wed Feb 07 2018 Fedora Release Engineering - 2.2.11-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 2.2.11-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.2.11-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.2.11-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 2.2.11-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Nov 09 2015 Petr Pisar - 2.2.11-19 +- Fix -nbdfa and -nbdfe typo in the manual + +* Wed Jun 17 2015 Fedora Release Engineering - 2.2.11-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Apr 02 2015 Petr Pisar - 2.2.11-17 +- Correct a typo about enabling control comment in manual page + +* Wed Mar 18 2015 Petr Pisar - 2.2.11-16 +- Support hexadecimal floats +- Adapt to changes in texi2html-5.0 + +* Sat Aug 16 2014 Fedora Release Engineering - 2.2.11-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 2.2.11-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon May 19 2014 Petr Pisar - 2.2.11-13 +- Move upstream URL to Free Software Foundation + +* Sat Aug 03 2013 Fedora Release Engineering - 2.2.11-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Mar 26 2013 Petr Pisar - 2.2.11-11 +- Update config.sub to support aarch64 (bug #925588) + +* Thu Mar 07 2013 Petr Pisar - 2.2.11-10 +- Fix copying overlapping comments when using -fca option + +* Tue Feb 19 2013 Petr Pisar - 2.2.11-9 +- Fix compiler warnings +- Enable 64-bit stat (bug #912635) + +* Thu Feb 14 2013 Fedora Release Engineering - 2.2.11-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 2.2.11-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Feb 02 2012 Petr Pisar - 2.2.11-6 +- Return non-zero exit code on tests failure + +* Fri Jan 13 2012 Fedora Release Engineering - 2.2.11-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Aug 25 2011 Petr Pisar - 2.2.11-4 +- Fix decimal float constant suffixes (bug #733051) +- Remove uneeded spec code + +* Wed Feb 09 2011 Fedora Release Engineering - 2.2.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jul 20 2010 Petr Pisar - 2.2.11-2 +- Clean spec file from commented code + +* Tue Jul 20 2010 Petr Pisar - 2.2.11-1 +- 2.2.11 bump (#485022) +- Remove useless patches: indent-2.2.9-cdw.patch, indent-2.2.9-explicits.patch +- Reenable parallel build +- Distribute upstream changelogs + +* Tue Aug 11 2009 Roman Rakus - 2.2.10-5 +- Don't print errors in post and preun sections (#515935) + +* Fri Jul 24 2009 Fedora Release Engineering - 2.2.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 2.2.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Oct 2 2008 Roman Rakus - 2.2.10-2 +- Cleared man patch to comply with fuzz=0 + Resolves: #465015 + +* Wed Mar 12 2008 Petr Machata - 2.2.10-1 +- Rebase to 2.2.10 + - Dropped three patches + - Fix Source and URL + - Clean up spec + +* Tue Feb 19 2008 Fedora Release Engineering - 2.2.9-19 +- Autorebuild for GCC 4.3 + +* Thu Aug 16 2007 Petr Machata - 2.2.9-18 +- Fix licensing tag. + +* Fri Feb 2 2007 Petr Machata - 2.2.9-17 +- Tidy up the specfile per rpmlint comments +- Use utf-8 and fix national characters in contributor's names + +* Thu Jan 25 2007 Petr Machata - 2.2.9-15 +- Ville Skyttä: patch for non-failing %%post, %%preun +- Resolves: #223703 + +* Mon Jul 17 2006 Karsten Hopp 2.2.9-14 +- add buildrequires makeinfo + +* Sun Jul 16 2006 Petr Machata - 2.2.9-13 +- Add some missing options to manpage/infopage (#199037) + +* Wed Jul 12 2006 Jesse Keating - 2.2.9-12.3.1 +- rebuild + +* Tue Jun 6 2006 Petr Machata - 2.2.9-12.3 +- BuildRequires gettext + +* Fri Feb 10 2006 Jesse Keating - 2.2.9-12.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 2.2.9-12.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Feb 03 2006 Petr Machata 2.2.9-12 +- Adding Wei-Lun Chao's zh_TW UTF-8 messages (#134044) + +* Wed Feb 01 2006 Petr Machata 2.2.9-11 +- Setting LC_ALL instead of LC_MESSAGES in order to fix output of + KOI8-R characters. (#134044) + +* Fri Jan 27 2006 Petr Machata 2.2.9-10 +- Changed the placement of closing `while' of `do {} while' command + under a -cdw option. It's now cuddled up to the brace. (#67781) +- Changed the indentation of cuddled `else': the brace is lined up + under opening brace. Let's see if people like it. It looks less + strange than before, but still it looks strange. + +* Wed Jan 18 2006 Petr Machata 2.2.9-9 +- Silenting some warnings, voidifying some functions that were + implicitly int but didn't actually return anything. (#114376) + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Sun Apr 10 2005 Jakub Jelinek 2.2.9-8 +- add %%check + +* Sun Apr 10 2005 Jakub Jelinek 2.2.9-7 +- rebuilt with GCC4 +- fixed source URL + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Sat Jan 03 2004 Florian La Roche +- add a bugfix (copied from debian) + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Wed Jan 01 2003 Florian La Roche +- update to 2.2.9 + +* Wed Nov 27 2002 Elliot Lee 2.2.8-4 +- Don't use wildcard on bindir + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Thu Apr 25 2002 Florian La Roche +- update to 2.2.8 + +* Wed Feb 27 2002 Trond Eivind Glomsrød 2.2.7-3 +- Rebuild + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Fri Dec 28 2001 Florian La Roche +- update to 2.2.7 +- use find_lang for translations +- do not gzip man-page + +* Sun Jun 24 2001 Elliot Lee +- Bump release + rebuild. + +* Sun Nov 19 2000 Florian La Roche +- update to 2.2.6 + +* Fri Jul 21 2000 Trond Eivind Glomsrød +- rebuild + +* Thu Jul 13 2000 Prospector +- automatic rebuild + +* Thu Jun 08 2000 Trond Eivind Glomsrød +- use %%configure, %%makeinstall, %%{_infodir}, %%{_mandir} + and %%{_tmppath} +- don't use %%{_prefix} + +* Wed May 10 2000 Trond Eivind Glomsrød +- added URL +- remove manual stripping + + +* Thu Feb 03 2000 Cristian Gafton +- man pages are compressed + +* Thu Jan 20 2000 Bill Nottingham +- 2.2.5 + +* Mon Jul 26 1999 Bill Nottingham +- 2.2.0 + +* Fri Jul 16 1999 Bill Nottingham +- update to 2.1.1 + +* Sun May 30 1999 Jeff Johnson +- update to 1.10.0. + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 11) + +* Fri Dec 18 1998 Bill Nottingham +- build for 6.0 tree + +* Thu Aug 13 1998 Jeff Johnson +- build root + +* Thu May 07 1998 Prospector System +- translations modified for de, fr, tr + +* Tue Oct 21 1997 Otto Hammersmith +- use install-info + +* Thu Jul 10 1997 Erik Troan +- built against glibc