[Forensics-changes] [yara] 188/415: Fix compilation error in some gcc versions. Issue 88.
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:03 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository yara.
commit 4b86b4a9fddc54d9afa7ec1449ce95a9ac54dd32
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Mon Jul 1 23:02:03 2013 +0000
Fix compilation error in some gcc versions. Issue 88.
---
libyara/ahocorasick.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/libyara/ahocorasick.c b/libyara/ahocorasick.c
index 4859b9f..52748b2 100644
--- a/libyara/ahocorasick.c
+++ b/libyara/ahocorasick.c
@@ -771,9 +771,9 @@ void _yr_ac_gen_atoms(
while(i < atom_length)
{
if (i % 2 == 0)
- *(((uint8_t*) output_buffer)++) = string->string[j++];
+ *output_buffer++ = string->string[j++];
else
- *(((uint8_t*) output_buffer)++) = 0;
+ *output_buffer++ = 0;
i++;
}
@@ -1007,6 +1007,11 @@ int yr_ac_add_string(
atom_length = *((int*) atoms_cursor);
atoms_cursor += sizeof(int);
+ /*if (atom_length < 3)
+ { yr_free(atoms);
+ return ERROR_SUCCESS;
+ }*/
+
if (atom_length == 0)
{
*min_atom_length = 0;
--
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