From aee742e7675dfc125f31fbe00fafeda53c532b05 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 10 Apr 2014 16:30:15 -0700 Subject: More toward GitHub issue #56 --- node/AntiRecursion.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/AntiRecursion.hpp') diff --git a/node/AntiRecursion.hpp b/node/AntiRecursion.hpp index 82cf9e58..23b0f04c 100644 --- a/node/AntiRecursion.hpp +++ b/node/AntiRecursion.hpp @@ -89,7 +89,7 @@ public: { for(unsigned int h=0;h= i->len)&&(!memcmp(((const unsigned char *)data) + (len - i->len),i->tail,i->len))) + if ((i->len > 0)&&(len >= i->len)&&(!memcmp(((const unsigned char *)data) + (len - i->len),i->tail,i->len))) return false; } return true; -- cgit v1.2.3