From 352a6a6330678cdd1eaac86a0b95b137dcf20e3d Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Sat, 24 Aug 2002 19:47:47 +0000 Subject: [PATCH] Allow spaces between the end of a version, and the trailing ')'. --- ChangeLog | 5 +++++ debian/changelog | 2 ++ lib/fields.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 54cee77f..420f0e53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Aug 24 14:41:45 CDT 2002 Adam Heath + + * lib/fields.c: Allow spaces between the end of a version, and the + trailing ')'. + Sat Aug 24 14:16:13 CDT 2002 Adam Heath * lib/archives.c: Fix segfault when --auto-deconfigure is given. This is diff --git a/debian/changelog b/debian/changelog index a3363934..f6adda4e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ dpkg (1.10.5) unstable; urgency=low * Fix read past buffer in lib/nfmalloc.c. Closes: #157304. * Fix several read pass buffer bugs, and a memleak. Closes: #155362. * Fix segfault when --auto-deconfigure is given. Closes: #157762. + * Allow spaces between the end of a version, and the trailing ')'. + Closes: #154898. -- Adam Heath UNRELEASED diff --git a/lib/fields.c b/lib/fields.c index 60141068..f192cedb 100644 --- a/lib/fields.c +++ b/lib/fields.c @@ -375,6 +375,7 @@ void f_dependency(struct pkginfo *pigp, struct pkginfoperfile *pifp, if (isspace(*p)) break; p++; } + versionlength= p - versionstart; while (isspace(*p)) p++; if (*p == '(') parseerr(NULL,filename,lno, warnto,warncount,pigp,0, _("`%s' field, reference to `%.255s': " @@ -385,7 +386,6 @@ void f_dependency(struct pkginfo *pigp, struct pkginfoperfile *pifp, else if (*p == 0) parseerr(NULL,filename,lno, warnto,warncount,pigp,0, _("`%s' field, reference to `%.255s': " "version unterminated"),fip->name,depname); - versionlength= p - versionstart; if (versionlength >= versionused) { versionused= versionlength; version= realloc(version,versionlength+1); -- 2.39.5