[Forensics-changes] [yara] 290/368: tests: Check layout of SIZED_STRING
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:49 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 0fcee7ad3d140d70386f32db81e1242705ba927d
Author: Hilko Bengen <bengen at hilluzination.de>
Date: Fri May 13 19:06:32 2016 +0200
tests: Check layout of SIZED_STRING
The parser writes SIZED_STRING structs directly into arenas that get
serialized to disk, so the layout of this struct is part of the file
format.
---
tests/test-alignment.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/test-alignment.c b/tests/test-alignment.c
index dc33c3e..5273561 100644
--- a/tests/test-alignment.c
+++ b/tests/test-alignment.c
@@ -116,5 +116,9 @@ int main (int argc, char **argv)
CHECK_OFFSET(YARA_RULES_FILE_HEADER, 32, match_table);
CHECK_OFFSET(YARA_RULES_FILE_HEADER, 40, transition_table);
+ CHECK_SIZE(SIZED_STRING, 16);
+ CHECK_OFFSET(SIZED_STRING, 8, flags);
+ CHECK_OFFSET(SIZED_STRING, 12, c_string);
+
return err;
}
--
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