diff options
author | joerg <joerg@pkgsrc.org> | 2012-04-17 17:39:47 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-04-17 17:39:47 +0000 |
commit | d9a2224bf7e2e1ed1f2cf034fa5fa100eeab7a15 (patch) | |
tree | 27cddce2813ad5dbb848008874dcfa788f067cc2 /audio | |
parent | e7517e2d4732fe789353a28f9df8486a5a161963 (diff) | |
download | pkgsrc-d9a2224bf7e2e1ed1f2cf034fa5fa100eeab7a15.tar.gz |
Fix loop in a way that likely terminates before the array overflows.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/liblastfm/Makefile | 4 | ||||
-rw-r--r-- | audio/liblastfm/distinfo | 3 | ||||
-rw-r--r-- | audio/liblastfm/patches/patch-src_fingerprint_fplib_FloatingAverage.h | 13 |
3 files changed, 17 insertions, 3 deletions
diff --git a/audio/liblastfm/Makefile b/audio/liblastfm/Makefile index 1d05cb12df6..6ad29973b01 100644 --- a/audio/liblastfm/Makefile +++ b/audio/liblastfm/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.17 2012/03/22 14:18:44 obache Exp $ +# $NetBSD: Makefile,v 1.18 2012/04/17 17:39:47 joerg Exp $ # DISTNAME= mxcl-liblastfm-0.3.3-0-gf0b3239 PKGNAME= liblastfm-0.3.3 -PKGREVISION= 9 +PKGREVISION= 10 CATEGORIES= audio net MASTER_SITES= http://download.github.com/ diff --git a/audio/liblastfm/distinfo b/audio/liblastfm/distinfo index c3860ed90e0..0d5f47aad97 100644 --- a/audio/liblastfm/distinfo +++ b/audio/liblastfm/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.4 2010/10/16 16:17:58 wiz Exp $ +$NetBSD: distinfo,v 1.5 2012/04/17 17:39:47 joerg Exp $ SHA1 (mxcl-liblastfm-0.3.3-0-gf0b3239.tar.gz) = f2e9705c9c2cbeaa14f46da9bd35ab36fe710392 RMD160 (mxcl-liblastfm-0.3.3-0-gf0b3239.tar.gz) = 690931075f38fda78c69015ca5088c166f6e1013 Size (mxcl-liblastfm-0.3.3-0-gf0b3239.tar.gz) = 111700 bytes SHA1 (patch-aa) = 2e25caf9c7e15f1c2c5a6b1d3e1ae3539710ac86 SHA1 (patch-ab) = f9d88de85576479c903ebd165df077050f35c70e +SHA1 (patch-src_fingerprint_fplib_FloatingAverage.h) = c94e81ded3df1f3f9d8e156275524d3cdc6fd926 diff --git a/audio/liblastfm/patches/patch-src_fingerprint_fplib_FloatingAverage.h b/audio/liblastfm/patches/patch-src_fingerprint_fplib_FloatingAverage.h new file mode 100644 index 00000000000..1c7c8d49b49 --- /dev/null +++ b/audio/liblastfm/patches/patch-src_fingerprint_fplib_FloatingAverage.h @@ -0,0 +1,13 @@ +$NetBSD: patch-src_fingerprint_fplib_FloatingAverage.h,v 1.1 2012/04/17 17:39:47 joerg Exp $ + +--- src/fingerprint/fplib/FloatingAverage.h.orig 2012-04-17 15:10:50.000000000 +0000 ++++ src/fingerprint/fplib/FloatingAverage.h +@@ -76,7 +76,7 @@ public: + { + T real_sum = 0; + const T* pCircularBuffer = m_values.get_buffer(); +- for ( int i = 0; i < size; ++i ) ++ for ( int i = 0; i < size(); ++i ) + real_sum += pCircularBuffer[i]; + return abs(real_sum - m_sum) / this->size(); + } |