[Forensics-changes] [yara] 57/368: Fix hash module.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:11 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 14a465c102438d87c512514b89d9d4a716a89a0e
Author: Wesley Shields <wxs at atarininja.org>
Date:   Fri Sep 18 16:32:21 2015 -0400

    Fix hash module.
    
    This fixes a regression introduced in 9397c30, which causes the hash
    module to not be found by yara. For example, after 9397c30 was commited
    this happens after building yara:
    
    wxs at psh yara % nm ./yara | grep string_md5
    wxs at psh yara %
    
    The "string_md5" symbol is one that is from hash.c. Looking at the build
    log hash.c is compiled and the "string_md5" symbol is in
    libyara/.libs/libyara.a and libyara/.libs/libyara.dylib after
    compilation. But when yara is linked, the entire hash module is left
    out.
    
    After a bisection 9397c30 was found to be the culprit and the only
    answer was this particular line being removed.
---
 libyara/modules.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libyara/modules.c b/libyara/modules.c
index 6b270f7..2db38c6 100644
--- a/libyara/modules.c
+++ b/libyara/modules.c
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+#include <config.h>
+
 #include <yara/exec.h>
 #include <yara/modules.h>
 #include <yara/libyara.h>

-- 
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