diff options
author | joerg <joerg> | 2016-12-17 14:18:32 +0000 |
---|---|---|
committer | joerg <joerg> | 2016-12-17 14:18:32 +0000 |
commit | ad232b164021ed3662f5f9a008916bbd41504e17 (patch) | |
tree | da2d0f7ce88672813189a2bc980e5ba9ae88728f /devel | |
parent | 14ad276c59837cf84f9e2577a3626bede8dbaa44 (diff) | |
download | pkgsrc-ad232b164021ed3662f5f9a008916bbd41504e17.tar.gz |
Fix pointer abuse.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/tlsh/distinfo | 3 | ||||
-rw-r--r-- | devel/tlsh/patches/patch-utils_rand__tags.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/tlsh/distinfo b/devel/tlsh/distinfo index ecd6c7cfc15..ec008b9d16b 100644 --- a/devel/tlsh/distinfo +++ b/devel/tlsh/distinfo @@ -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 --git a/devel/tlsh/patches/patch-utils_rand__tags.cpp b/devel/tlsh/patches/patch-utils_rand__tags.cpp new file mode 100644 index 00000000000..0d523941d1e --- /dev/null +++ b/devel/tlsh/patches/patch-utils_rand__tags.cpp @@ -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); |