[Forensics-changes] [yara] 291/368: Ensure equal SIZED_STRING layout on 32 and 64 bit architectures
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 a59b3b585a96e4aff123dfbbc510006eafed0de1
Author: Hilko Bengen <bengen at hilluzination.de>
Date: Fri May 13 19:16:36 2016 +0200
Ensure equal SIZED_STRING layout on 32 and 64 bit architectures
---
libyara/include/yara/sizedstr.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libyara/include/yara/sizedstr.h b/libyara/include/yara/sizedstr.h
index c6e8732..3f5effa 100644
--- a/libyara/include/yara/sizedstr.h
+++ b/libyara/include/yara/sizedstr.h
@@ -18,6 +18,7 @@ limitations under the License.
#define _SIZEDSTR_H
#include <stddef.h>
+#include <inttypes.h>
//
// This struct is used to support strings containing null chars. The length of
@@ -30,8 +31,8 @@ limitations under the License.
typedef struct _SIZED_STRING
{
- size_t length;
- int flags;
+ uint64_t length;
+ uint32_t flags;
char c_string[1];
} SIZED_STRING;
--
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