pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/tlsh Fix pointer abuse.
details: https://anonhg.NetBSD.org/pkgsrc/rev/39386bd8cdb9
branches: trunk
changeset: 356020:39386bd8cdb9
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Dec 17 14:18:32 2016 +0000
description:
Fix pointer abuse.
diffstat:
devel/tlsh/distinfo | 3 ++-
devel/tlsh/patches/patch-utils_rand__tags.cpp | 15 +++++++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r df362518db74 -r 39386bd8cdb9 devel/tlsh/distinfo
--- a/devel/tlsh/distinfo Sat Dec 17 14:15:48 2016 +0000
+++ b/devel/tlsh/distinfo Sat Dec 17 14:18:32 2016 +0000
@@ -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
diff -r df362518db74 -r 39386bd8cdb9 devel/tlsh/patches/patch-utils_rand__tags.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tlsh/patches/patch-utils_rand__tags.cpp Sat Dec 17 14:18:32 2016 +0000
@@ -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