summaryrefslogtreecommitdiff
path: root/devel/id-utils/patches
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@pkgsrc.org>2000-05-27 01:23:04 +0000
committersommerfeld <sommerfeld@pkgsrc.org>2000-05-27 01:23:04 +0000
commitb15df4fb8ecc8295cc3a77d6948775848b079634 (patch)
tree00debcf37de19be22d2e04da70330617ad2a9e8a /devel/id-utils/patches
parentece92e7b316d5f08a4e95165018590c552804ee2 (diff)
downloadpkgsrc-b15df4fb8ecc8295cc3a77d6948775848b079634.tar.gz
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..
Diffstat (limited to 'devel/id-utils/patches')
-rw-r--r--devel/id-utils/patches/patch-ac15
1 files changed, 12 insertions, 3 deletions
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;