[Forensics-changes] [yara] 47/407: Revert string_argument being SIZED_STRING.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:08 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 2a615996daa075686311d6cf35466b8a4fd7927b
Author: Wesley Shields <wxs at atarininja.org>
Date: Fri Sep 19 21:09:47 2014 -0400
Revert string_argument being SIZED_STRING.
This was a bad move, if you want to pass a string that contains NULL
characters, it's better to store the data to search in a variable and
use "contains" or "matches" in the rule.
---
libyara/include/yara/modules.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libyara/include/yara/modules.h b/libyara/include/yara/modules.h
index 2041464..eb7d5bd 100644
--- a/libyara/include/yara/modules.h
+++ b/libyara/include/yara/modules.h
@@ -219,7 +219,7 @@ limitations under the License.
#define integer_argument(n) (((int64_t*) __args)[n-1])
-#define string_argument(n) ((SIZED_STRING*)((int64_t*) __args)[n-1])
+#define string_argument(n) ((char*)((int64_t*) __args)[n-1])
#define regexp_argument(n) ((RE_CODE)((int64_t*) __args)[n-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