Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22012
Modified Files:
patchutils.info
Added Files:
patchutils.patch
Log Message:
Fixed a buffer underrun issue. Enabled tests, but 20 have problems. The issues
are with the test suite itself, not what they're testing so have the test phase
exit with 1 since I don't feel like rewriting them.
--- NEW FILE: patchutils.patch ---
diff -Nur patchutils-0.3.1.orig/src/util.c patchutils-0.3.1/src/util.c
--- patchutils-0.3.1.orig/src/util.c 2009-01-23 13:01:56.000000000 -0500
+++ patchutils-0.3.1/src/util.c 2009-01-25 10:31:33.000000000 -0500
@@ -351,7 +351,7 @@
return -1;
len = strlen(p);
- while ((*line)[len - 1] != '\n') {
+ while ((len > 0) && ((*line)[len - 1] != '\n')) {
p = realloc(*line, *n + GLSTEP);
if (!p)
return -1;
Index: patchutils.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils/patchutils.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- patchutils.info 24 Jan 2009 03:54:58 -0000 1.5
+++ patchutils.info 25 Jan 2009 17:04:06 -0000 1.6
@@ -1,21 +1,31 @@
Package: patchutils
Version: 0.3.1
-Revision: 1
+Revision: 2
Maintainer: Daniel Johnson <[email protected]>
+
Source: http://cyberelk.net/tim/data/patchutils/stable/%N-%v.tar.bz2
Source-MD5: 3fd9bca58a429fbbb1c2126f1b72aa23
-DocFiles: AUTHORS README COPYING ChangeLog AUTHORS NEWS TODO
-ConfigureParams: --mandir=%p/share/man
+
+BuildDepends: fink (>= 0.24.12)
+
+PatchFile: %n.patch
+PatchFile-MD5: 7affde79af3b144f523e07d19acecdbd
+
+ConfigureParams: --disable-dependency-tracking
CompileScript: <<
PERL=/usr/bin/perl ./configure %c
make
-# make check
-#TODO: find out why tests fail
<<
+InfoTest: TestScript: make check || exit 1
InstallScript: make install DESTDIR=%d
-#
+
+DocFiles: AUTHORS README COPYING ChangeLog AUTHORS NEWS TODO
+
DescPackaging: <<
- Skip the checks because some fail. This is not a good solution.
+ 20 tests fail due to problems with the test suite. I don't care
+ enough to rewrite the tests to work, so make the test phase exit with 1.
+
+ Patch getline in util.c to fix a buffer underrun issue that causes segfaults.
Maintained up to 0.2.30 by Spundun Bhatt
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs