[Forensics-changes] [yara] 143/415: Bug fix: Regular expressions not matching at the end of the file when compiled with RE2
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:42:56 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 07b5a0194780744f6e2d5347590854fc0f149995
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Thu Aug 16 16:57:10 2012 +0000
Bug fix: Regular expressions not matching at the end of the file when compiled with RE2
---
libyara/regex/regex-re2.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libyara/regex/regex-re2.cc b/libyara/regex/regex-re2.cc
index 5db459c..e540d05 100644
--- a/libyara/regex/regex-re2.cc
+++ b/libyara/regex/regex-re2.cc
@@ -34,7 +34,7 @@ int regex_exec(REGEXP* regex, int anchored, const char *buffer, size_t buffer_si
re2::RE2* re_ptr = (re2::RE2*) regex->regexp;
- if (re_ptr->Match(data, 0, data.size()-1, anchor, &substring, 1))
+ if (re_ptr->Match(data, 0, data.size(), anchor, &substring, 1))
{
return substring.size();
}
--
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