summaryrefslogtreecommitdiff
path: root/devel/google-glog
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-07-18 12:01:29 +0000
committerjoerg <joerg@pkgsrc.org>2013-07-18 12:01:29 +0000
commit836166a765fd8c6412461123c3e82d774d82536d (patch)
treef92fd42c1b5a8aff2e3eafd083c4b161433979c9 /devel/google-glog
parent7758b74e70e447866211db9e232885d402fa61ae (diff)
downloadpkgsrc-836166a765fd8c6412461123c3e82d774d82536d.tar.gz
Fix use of NUL compared against pointers, including a real bug due to
missing indices. Bump revision.
Diffstat (limited to 'devel/google-glog')
-rw-r--r--devel/google-glog/Makefile3
-rw-r--r--devel/google-glog/distinfo3
-rw-r--r--devel/google-glog/patches/patch-src_demangle.cc22
3 files changed, 26 insertions, 2 deletions
diff --git a/devel/google-glog/Makefile b/devel/google-glog/Makefile
index 3ed5574ac65..bebc4acbe27 100644
--- a/devel/google-glog/Makefile
+++ b/devel/google-glog/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2013/05/09 13:50:14 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2013/07/18 12:01:29 joerg Exp $
#
DISTNAME= glog-0.3.3
PKGNAME= google-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://google-glog.googlecode.com/files/
diff --git a/devel/google-glog/distinfo b/devel/google-glog/distinfo
index c4bd31d9cca..24a85f35c11 100644
--- a/devel/google-glog/distinfo
+++ b/devel/google-glog/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2013/05/09 13:50:14 joerg Exp $
+$NetBSD: distinfo,v 1.3 2013/07/18 12:01:29 joerg Exp $
SHA1 (glog-0.3.3.tar.gz) = ed40c26ecffc5ad47c618684415799ebaaa30d65
RMD160 (glog-0.3.3.tar.gz) = 27fb1bd4156f6715b84d59293d96d1cadc79ea7a
Size (glog-0.3.3.tar.gz) = 509676 bytes
+SHA1 (patch-src_demangle.cc) = a5c0ed2b5069894a52735cc691fd12997c77a8cd
SHA1 (patch-src_glog_stl__logging.h.in) = c86472e0f87ca99e91a5ecdb8c33affdb6679c26
diff --git a/devel/google-glog/patches/patch-src_demangle.cc b/devel/google-glog/patches/patch-src_demangle.cc
new file mode 100644
index 00000000000..41eec288f30
--- /dev/null
+++ b/devel/google-glog/patches/patch-src_demangle.cc
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_demangle.cc,v 1.1 2013/07/18 12:01:29 joerg Exp $
+
+--- src/demangle.cc.orig 2012-01-12 08:40:58.000000000 +0000
++++ src/demangle.cc
+@@ -167,7 +167,7 @@ static size_t StrLen(const char *str) {
+ // Returns true if "str" has at least "n" characters remaining.
+ static bool AtLeastNumCharsRemaining(const char *str, int n) {
+ for (int i = 0; i < n; ++i) {
+- if (str == '\0') {
++ if (str[i] == '\0') {
+ return false;
+ }
+ }
+@@ -223,7 +223,7 @@ static bool ParseTwoCharToken(State *sta
+ // Returns true and advances "mangled_cur" if we find any character in
+ // "char_class" at "mangled_cur" position.
+ static bool ParseCharClass(State *state, const char *char_class) {
+- if (state->mangled_cur == '\0') {
++ if (state->mangled_cur == NULL) {
+ return false;
+ }
+ const char *p = char_class;