From 9e9ece675dfb895ade00e8f03eca06730bdd87ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Fri, 4 Oct 2013 22:06:16 +0200 Subject: [PATCH] Attic 0.8.1 --- CHANGES | 6 ++++++ attic/_hashindex.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 9b032f95c..fc4bc7b59 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,12 @@ Attic Changelog Here you can see the full list of changes between each Attic release. +Version 0.8.1 +------------- + +(bugfix release, released on Oct 4, 2013) + +- Fix segmentation fault issue. Version 0.8 ----------- diff --git a/attic/_hashindex.c b/attic/_hashindex.c index 18c0482c4..a924b78a5 100644 --- a/attic/_hashindex.c +++ b/attic/_hashindex.c @@ -92,7 +92,7 @@ hashindex_lookup(HashIndex *index, const void *key) } } else if(BUCKET_MATCHES_KEY(index, idx, key)) { - if (didx != -1) { + if (didx != -1 && !index->readonly) { memcpy(BUCKET_ADDR_WRITE(index, didx), BUCKET_ADDR_READ(index, idx), index->bucket_size); BUCKET_MARK_DELETED(index, idx); idx = didx;