diff options
author | sommerfeld <sommerfeld@pkgsrc.org> | 2000-05-27 01:23:04 +0000 |
---|---|---|
committer | sommerfeld <sommerfeld@pkgsrc.org> | 2000-05-27 01:23:04 +0000 |
commit | b15df4fb8ecc8295cc3a77d6948775848b079634 (patch) | |
tree | 00debcf37de19be22d2e04da70330617ad2a9e8a | |
parent | ece92e7b316d5f08a4e95165018590c552804ee2 (diff) | |
download | pkgsrc-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..
-rw-r--r-- | devel/id-utils/files/patch-sum | 4 | ||||
-rw-r--r-- | devel/id-utils/patches/patch-ac | 15 |
2 files changed, 14 insertions, 5 deletions
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; |