[Forensics-changes] [yara] 345/368: Bump ARENA_FILE_VERSION, add corresponding check to tests (#468)

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.5.0
in repository yara.

commit 685ec9cf39ab8236bfd676b5fd54ebba5a1bfd4f
Author: Hilko Bengen <hillu at users.noreply.github.com>
Date:   Mon Jun 27 16:57:49 2016 +0200

    Bump ARENA_FILE_VERSION, add corresponding check to tests (#468)
---
 libyara/include/yara/arena.h | 2 +-
 tests/test-alignment.c       | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/libyara/include/yara/arena.h b/libyara/include/yara/arena.h
index c12373c..745e94d 100644
--- a/libyara/include/yara/arena.h
+++ b/libyara/include/yara/arena.h
@@ -37,7 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #define ARENA_FLAGS_FIXED_SIZE   1
 #define ARENA_FLAGS_COALESCED    2
-#define ARENA_FILE_VERSION       10
+#define ARENA_FILE_VERSION       11
 
 #define EOL ((size_t) -1)
 
diff --git a/tests/test-alignment.c b/tests/test-alignment.c
index d02cc9f..0130de6 100644
--- a/tests/test-alignment.c
+++ b/tests/test-alignment.c
@@ -29,6 +29,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #include <yara.h>
 #include <stdio.h>
+#undef NDEBUG
+#include <assert.h>
 
 int err = 0;
 
@@ -65,6 +67,8 @@ int err = 0;
 
 int main (int argc, char **argv)
 {
+  assert(ARENA_FILE_VERSION == 11);
+
   CHECK_SIZE(YR_NAMESPACE, 4 * MAX_THREADS + 8);
   CHECK_OFFSET(YR_NAMESPACE, 4 * MAX_THREADS, name);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list