pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/tlsh
Module Name: pkgsrc
Committed By: joerg
Date: Sat Dec 17 14:18:32 UTC 2016
Modified Files:
pkgsrc/devel/tlsh: distinfo
Added Files:
pkgsrc/devel/tlsh/patches: patch-utils_rand__tags.cpp
Log Message:
Fix pointer abuse.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/tlsh/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/tlsh/patches/patch-utils_rand__tags.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/tlsh/distinfo
diff -u pkgsrc/devel/tlsh/distinfo:1.3 pkgsrc/devel/tlsh/distinfo:1.4
--- pkgsrc/devel/tlsh/distinfo:1.3 Thu Sep 1 17:04:08 2016
+++ pkgsrc/devel/tlsh/distinfo Sat Dec 17 14:18:32 2016
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2016/09/01 17:04:08 wiz Exp $
+$NetBSD: distinfo,v 1.4 2016/12/17 14:18:32 joerg Exp $
SHA1 (tlsh-3.4.5.tar.gz) = 2d50b1e66ffbfd215f36648258d28be4171015c0
RMD160 (tlsh-3.4.5.tar.gz) = a7f5f94d8113a6d6e24a84fe86b3d9dc93609757
SHA512 (tlsh-3.4.5.tar.gz) = 039f9fb9fb467a9b22f85a621c46069bac1745da039657840e1ff1a53901392fcf29d3c953b0f47d831d022a5e2594925c726d4ff921614418a3bb023a4ebbdc
Size (tlsh-3.4.5.tar.gz) = 1914815 bytes
+SHA1 (patch-utils_rand__tags.cpp) = 084f910f41e04aa214e62c3b2e430e27d0e14920
Added files:
Index: pkgsrc/devel/tlsh/patches/patch-utils_rand__tags.cpp
diff -u /dev/null pkgsrc/devel/tlsh/patches/patch-utils_rand__tags.cpp:1.1
--- /dev/null Sat Dec 17 14:18:32 2016
+++ pkgsrc/devel/tlsh/patches/patch-utils_rand__tags.cpp Sat Dec 17 14:18:32 2016
@@ -0,0 +1,15 @@
+$NetBSD: patch-utils_rand__tags.cpp,v 1.1 2016/12/17 14:18:32 joerg Exp $
+
+Checking for negative pointers doesn't make sense.
+
+--- utils/rand_tags.cpp.orig 2016-12-16 17:30:02.495417195 +0000
++++ utils/rand_tags.cpp
+@@ -366,7 +366,7 @@ struct tagdef oneoff_def[] = {
+
+ static void rhtml_contents(std::string &htmls, int *ntags, int *ndistinct_tags)
+ {
+- if ((*ntags <= 0) && (ndistinct_tags <= 0))
++ if ((*ntags <= 0) && (ndistinct_tags == 0))
+ return;
+ if (random() % 10 == 1) {
+ anchor(htmls);
Home |
Main Index |
Thread Index |
Old Index