[Forensics-changes] [yara] 177/368: Move the stack size setting code to near init call in main()
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:27 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 83b0d902c44314ab295e4abe9889a32414ec245c
Author: Coleman Kane <ckane at colemankane.org>
Date: Fri Feb 19 21:46:28 2016 -0500
Move the stack size setting code to near init call in main()
---
yara.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/yara.c b/yara.c
index 50c5150..4b00918 100644
--- a/yara.c
+++ b/yara.c
@@ -732,11 +732,6 @@ void* scanning_thread(void* param)
if (elapsed_time < timeout)
{
- if(stacksize != DEFAULT_STACK_SIZE) {
- // If the user chose a different stack size than default,
- // modify the yara config here
- yr_set_configuration(YR_CONFIG_STACK_SIZE, &stacksize);
- }
result = yr_rules_scan_file(
args->rules,
file_path,
@@ -1010,6 +1005,12 @@ int main(
result = yr_initialize();
+ if(stacksize != DEFAULT_STACK_SIZE) {
+ // If the user chose a different stack size than default,
+ // modify the yara config here
+ yr_set_configuration(YR_CONFIG_STACK_SIZE, &stacksize);
+ }
+
if (result != ERROR_SUCCESS)
{
fprintf(stderr, "error: initialization error (%d)\n", result);
--
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