From b15df4fb8ecc8295cc3a77d6948775848b079634 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Sat, 27 May 2000 01:23:04 +0000 Subject: Prevent infinite loop in mkid if it encounters an assembly source file which ends in a preprocessor directive not followed by a newline. (test case: rev 1.1 of syssrc/sys/lib/libkern/arch/arm26/byte_swap_2.S) Patch mailed to GNU maintainer; however, last release of this package was ~4 years ago, so.. --- devel/id-utils/files/patch-sum | 4 ++-- devel/id-utils/patches/patch-ac | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'devel/id-utils') diff --git a/devel/id-utils/files/patch-sum b/devel/id-utils/files/patch-sum index 56776a3921e..b697e1e5ebf 100644 --- a/devel/id-utils/files/patch-sum +++ b/devel/id-utils/files/patch-sum @@ -1,5 +1,5 @@ -$NetBSD: patch-sum,v 1.4 2000/03/22 13:55:32 mrg Exp $ +$NetBSD: patch-sum,v 1.5 2000/05/27 01:23:04 sommerfeld Exp $ MD5 (patch-aa) = ceb1557ed3b9366f6f4828fda548bd3d MD5 (patch-ab) = 936e23e5bf89ad06616e46c14e4b7ac6 -MD5 (patch-ac) = 4930867cb1fd29306eacd9b52ae7e202 +MD5 (patch-ac) = c3066e26f96a3f360955c591c4a87328 diff --git a/devel/id-utils/patches/patch-ac b/devel/id-utils/patches/patch-ac index 57af85a5055..dfe7408ff61 100644 --- a/devel/id-utils/patches/patch-ac +++ b/devel/id-utils/patches/patch-ac @@ -1,7 +1,7 @@ -$NetBSD: patch-ac,v 1.1 2000/03/22 13:55:32 mrg Exp $ +$NetBSD: patch-ac,v 1.2 2000/05/27 01:23:05 sommerfeld Exp $ ---- libidu/scanners.c.orig Thu Jul 18 07:45:52 1996 -+++ libidu/scanners.c Thu Mar 23 00:42:05 2000 +--- libidu/scanners.c.orig Wed Jul 17 17:45:52 1996 ++++ libidu/scanners.c Fri May 26 21:07:43 2000 @@ -65,8 +65,10 @@ struct language languages_0[] = { @@ -13,3 +13,12 @@ $NetBSD: patch-ac,v 1.1 2000/03/22 13:55:32 mrg Exp $ }; struct language const *languages_N = &languages_0[cardinalityof (languages_0)]; +@@ -906,7 +908,7 @@ + || strequ (id_0, "define") + || strequ (id_0, "undef")) + goto next; +- while (c != '\n') ++ while ((c != '\n') && !ISEOF(c)) + c = getc (in_FILE); + new_line = 1; + goto top; -- cgit v1.2.3