[Forensics-changes] [yara] 193/415: Fix bug causing segmentation fault
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:04 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 4004103e7808447cc2d2a949dcf197d560009560
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Wed Jul 17 07:23:11 2013 +0000
Fix bug causing segmentation fault
---
libyara/rules.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libyara/rules.c b/libyara/rules.c
index 301f65c..699fa84 100644
--- a/libyara/rules.c
+++ b/libyara/rules.c
@@ -268,6 +268,9 @@ inline int _yr_scan_verify_string_match(
uint8_t tmp_buffer[512];
uint8_t* tmp;
+ if (buffer_size <= 0)
+ return 0;
+
if (STRING_IS_HEX(string))
{
return _yr_scan_verify_hex_match(
--
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