[Forensics-changes] [yara] 167/407: Fix problem from cherry-picked commit.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.3.0
in repository yara.
commit b5a4229af6b91266e84056f83306ba7ec7ff8abd
Author: Wesley Shields <wxs at atarininja.org>
Date: Thu Oct 30 10:04:47 2014 -0400
Fix problem from cherry-picked commit.
---
libyara/modules/pe.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index 4f0baa6..9f576a6 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -2629,7 +2629,7 @@ define_function(not_before_string)
char *p;
BIO* date_bio;
X509_TIMESTAMPS* x509_timestamp;
- SIZED_STRING* not_before = string_argument(1);
+ char* not_before = string_argument(1);
YR_OBJECT* module = module();
PE* pe = (PE*) module->data;
@@ -2652,7 +2652,7 @@ define_function(not_before_string)
p[date_bio->num_write] = '\x0';
BIO_set_close(date_bio, BIO_CLOSE);
BIO_free(date_bio);
- if (strcasecmp(p, not_before->c_string) == 0)
+ if (strcasecmp(p, not_before) == 0)
{
yr_free(p);
return_integer(1);
@@ -2705,7 +2705,7 @@ define_function(not_after_string)
char *p;
BIO* date_bio;
X509_TIMESTAMPS* x509_timestamp;
- SIZED_STRING* not_after = string_argument(1);
+ char* not_after = string_argument(1);
YR_OBJECT* module = module();
PE* pe = (PE*) module->data;
@@ -2728,7 +2728,7 @@ define_function(not_after_string)
p[date_bio->num_write] = '\x0';
BIO_set_close(date_bio, BIO_CLOSE);
BIO_free(date_bio);
- if (strcasecmp(p, not_after->c_string) == 0)
+ if (strcasecmp(p, not_after) == 0)
{
yr_free(p);
return_integer(1);
--
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