[Forensics-changes] [yara] 299/368: Fix wrong condition due to a typo
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:50 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 0b0e8779d91573ce9497f3cfcea3ab12541b23bc
Author: plusvic <plusvic at gmail.com>
Date: Fri Jun 3 14:11:01 2016 +0200
Fix wrong condition due to a typo
---
libyara/ahocorasick.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libyara/ahocorasick.c b/libyara/ahocorasick.c
index 9e77964..01fd7d9 100644
--- a/libyara/ahocorasick.c
+++ b/libyara/ahocorasick.c
@@ -461,7 +461,7 @@ int _yr_ac_find_suitable_transition_table_slot(
size_t t_bytes_size = automaton->tables_size *
sizeof(YR_AC_TRANSITION);
- size_t m_bytes_size = automaton->tables_size *
+ size_t m_bytes_size = automaton->tables_size *
sizeof(YR_AC_MATCH_TABLE_ENTRY);
automaton->t_table = (YR_AC_TRANSITION_TABLE) yr_realloc(
@@ -587,7 +587,7 @@ int _yr_ac_build_transition_table(
automaton->m_table = (YR_AC_MATCH_TABLE) yr_malloc(
automaton->tables_size * sizeof(YR_AC_MATCH_TABLE_ENTRY));
- if (automaton->t_table == NULL || automaton->t_table == NULL)
+ if (automaton->t_table == NULL || automaton->m_table == NULL)
{
yr_free(automaton->t_table);
yr_free(automaton->m_table);
--
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