summaryrefslogtreecommitdiff
path: root/processor
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-05-30 14:51:13 +0000
committerXuefer <xuefer@gmail.com>2014-05-30 14:51:13 +0000
commitf5e6898b1be2e9759e3284933b3885d65c553be3 (patch)
treee790f7233bf0107bd748dc7398b76909be034f84 /processor
parentb51efc28594d65cc32e9eb462e01725751302443 (diff)
downloadxcache-f5e6898b1be2e9759e3284933b3885d65c553be3.tar.gz
xcache-f5e6898b1be2e9759e3284933b3885d65c553be3.zip
invalid read of 2 bytes in hashtable
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1495 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor')
-rw-r--r--processor/hashtable.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/processor/hashtable.m4 b/processor/hashtable.m4
index 2617fec..29ba425 100644
--- a/processor/hashtable.m4
+++ b/processor/hashtable.m4
@@ -24,7 +24,7 @@ define(`DEF_HASH_TABLE_FUNC', `DEF_STRUCT_P_FUNC(`HashTable', `$1', `
} while (keysize > bufsize);
buf = erealloc(buf, bufsize);
}
- memcpy(buf, BUCKET_KEY_S(srcBucket), keysize);
+ memcpy(buf, BUCKET_KEY_S(srcBucket), keysize - 2);
buf[keysize - 2] = buf[keysize - 1] = ""[0];
keysize = srcBucket->nKeyLength;
#ifdef IS_UNICODE